python39Packages.fastparquet: 0.7.0 -> 0.7.1
This commit is contained in:
parent
37d31ecb87
commit
c8845ea5e9
@ -5,7 +5,6 @@
|
||||
, numba
|
||||
, numpy
|
||||
, pandas
|
||||
, pytest-runner
|
||||
, cramjam
|
||||
, fsspec
|
||||
, thrift
|
||||
@ -14,26 +13,32 @@
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "fastparquet";
|
||||
version = "0.7.0";
|
||||
version = "0.7.1";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "dask";
|
||||
repo = pname;
|
||||
rev = version;
|
||||
hash = "sha256-08hanzRnt6WuMriNNtOd+ZHycr2XBeIRav+5sgvT7Do=";
|
||||
hash = "sha256-xV0AXNZSy4LSrHf11OP/+KDbeDQu8yF1ugX+W4mie1E=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ pytest-runner ];
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace "'pytest-runner'," "" \
|
||||
--replace "oldest-supported-numpy" "numpy"
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ cramjam fsspec numba numpy pandas thrift ];
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
# Workaround https://github.com/NixOS/nixpkgs/issues/123561
|
||||
preCheck = ''
|
||||
mv fastparquet/test .
|
||||
rm -rf fastparquet
|
||||
rm -r fastparquet
|
||||
fastparquet_test="$out"/${python.sitePackages}/fastparquet/test
|
||||
ln -s `pwd`/test "$fastparquet_test"
|
||||
'';
|
||||
|
||||
postCheck = ''
|
||||
rm "$fastparquet_test"
|
||||
'';
|
||||
|
Loading…
Reference in New Issue
Block a user