diff options
author | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-08-23 23:23:18 +0200 |
---|---|---|
committer | Martin Weinelt <hexa@darmstadt.ccc.de> | 2023-08-23 23:23:49 +0200 |
commit | 2ead800ce76e7a0155748841685a7387fa216fd4 (patch) | |
tree | 09b3c2acaabaa7f18bd93e6ab585bc4732575a6c | |
parent | 3d3b361ac1352ba3ed80044640d8ebc0378f25c0 (diff) | |
download | nixpkgs-2ead800ce76e7a0155748841685a7387fa216fd4.tar nixpkgs-2ead800ce76e7a0155748841685a7387fa216fd4.tar.gz nixpkgs-2ead800ce76e7a0155748841685a7387fa216fd4.tar.bz2 nixpkgs-2ead800ce76e7a0155748841685a7387fa216fd4.tar.lz nixpkgs-2ead800ce76e7a0155748841685a7387fa216fd4.tar.xz nixpkgs-2ead800ce76e7a0155748841685a7387fa216fd4.tar.zst nixpkgs-2ead800ce76e7a0155748841685a7387fa216fd4.zip |
python310Packages.fastparquet: fix build deps
-rw-r--r-- | pkgs/development/python-modules/fastparquet/default.nix | 25 | ||||
-rw-r--r-- | pkgs/development/python-modules/fastparquet/version.patch | 7 |
2 files changed, 13 insertions, 19 deletions
diff --git a/pkgs/development/python-modules/fastparquet/default.nix b/pkgs/development/python-modules/fastparquet/default.nix index 593d677ca2f..05cb76f1dd4 100644 --- a/pkgs/development/python-modules/fastparquet/default.nix +++ b/pkgs/development/python-modules/fastparquet/default.nix @@ -3,8 +3,9 @@ , fetchFromGitHub , python , cython +, oldest-supported-numpy , setuptools -, substituteAll +, setuptools-scm , numpy , pandas , cramjam @@ -14,6 +15,7 @@ , pytestCheckHook , pythonOlder , packaging +, wheel }: buildPythonPackage rec { @@ -30,24 +32,23 @@ buildPythonPackage rec { hash = "sha256-pJ0zK0upEV7TyuNMIcozugkwBlYpK/Dg6BdB0kBpn9k="; }; + SETUPTOOLS_SCM_PRETEND_VERSION = version; + nativeBuildInputs = [ cython + oldest-supported-numpy setuptools - ]; - - patches = [ - (substituteAll { - src = ./version.patch; - inherit version; - }) + setuptools-scm + wheel ]; postPatch = '' - substituteInPlace setup.py \ - --replace "'pytest-runner'," "" \ - --replace "oldest-supported-numpy" "numpy" + substituteInPlace pyproject.toml \ + --replace '"pytest-runner"' "" - sed -i '/"git", "status"/d' setup.py + sed -i \ + -e "/pytest-runner/d" \ + -e '/"git", "status"/d' setup.py ''; propagatedBuildInputs = [ diff --git a/pkgs/development/python-modules/fastparquet/version.patch b/pkgs/development/python-modules/fastparquet/version.patch deleted file mode 100644 index 86d80e2a411..00000000000 --- a/pkgs/development/python-modules/fastparquet/version.patch +++ /dev/null @@ -1,7 +0,0 @@ -diff --git a/fastparquet/_version.py b/fastparquet/_version.py -new file mode 100644 -index 0000000..eb2c9c9 ---- /dev/null -+++ b/fastparquet/_version.py -@@ -0,0 +1 @@ -+__version__ = "@version@" |