python3Packages.ibis-framework: install with poetry

main
Phillip Cloud 2 years ago committed by Jonathan Ringer
parent 5e36a44000
commit 1b51366e61
  1. 16
      pkgs/development/python-modules/ibis-framework/default.nix

@ -14,6 +14,7 @@
, numpy
, pandas
, parsy
, poetry-core
, pyarrow
, pytest
, pytest-mock
@ -49,7 +50,7 @@ in
buildPythonPackage rec {
pname = "ibis-framework";
version = "2.1.1";
format = "setuptools";
format = "pyproject";
disabled = pythonOlder "3.7";
@ -60,6 +61,8 @@ buildPythonPackage rec {
sha256 = "sha256-n3fR6wvcSfIo7760seB+5SxtoYSqQmqkzZ9VlNQF200=";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
atpublic
cached-property
@ -78,6 +81,7 @@ buildPythonPackage rec {
tables
toolz
] ++ lib.optionals (pythonOlder "3.8") [
# TODO: remove when ibis 3.0.0 is released
importlib-metadata
];
@ -90,8 +94,13 @@ buildPythonPackage rec {
];
postPatch = ''
substituteInPlace setup.py \
--replace "atpublic>=2.3,<3" "atpublic>=2.3"
substituteInPlace pyproject.toml \
--replace 'atpublic = ">=2.3,<3"' 'atpublic = ">=2.3"'
'';
preBuild = ''
# setup.py exists only for developer convenience and is automatically generated
rm setup.py
'';
disabledTests = [
@ -136,6 +145,7 @@ buildPythonPackage rec {
wait
# TODO: remove when 3.0.0 is released
export PYTEST_BACKENDS="${backendsString}"
'';

Loading…
Cancel
Save