python310Packages.fastparquet: fix build deps

This commit is contained in:
Martin Weinelt 2023-08-23 23:23:18 +02:00
parent 3d3b361ac1
commit 2ead800ce7
No known key found for this signature in database
GPG Key ID: 87C1E9888F856759
2 changed files with 13 additions and 19 deletions

View File

@ -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 = [

View File

@ -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@"