pythonPackages.fastparquet: 0.5.0 -> 0.6.3

This commit is contained in:
Dmitry Kalinkin
2021-05-31 04:53:49 -04:00
parent f76cf135cf
commit 1fb5018fe9
@@ -1,23 +1,43 @@
{ lib, buildPythonPackage, fetchFromGitHub, numba, numpy, pandas, pytestrunner
, thrift, pytestCheckHook, python-snappy, lz4, zstandard, zstd }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, python
, numba
, numpy
, pandas
, pytestrunner
, cramjam
, fsspec
, thrift
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "fastparquet";
version = "0.5.0";
version = "0.6.3";
src = fetchFromGitHub {
owner = "dask";
repo = pname;
rev = version;
sha256 = "17i091kky34m2xivk29fqsyxxxa7v4352n79w01n7ni93za6wana";
hash = "sha256-wSJ6PqW7c8DJCsGuPhXaVGM2s/1dZhLjG4C0JWPcjhY=";
};
nativeBuildInputs = [ pytestrunner ];
propagatedBuildInputs = [ numba numpy pandas thrift ];
checkInputs = [ pytestCheckHook python-snappy lz4 zstandard zstd ];
propagatedBuildInputs = [ cramjam fsspec numba numpy pandas thrift ];
checkInputs = [ pytestCheckHook ];
# Workaround https://github.com/NixOS/nixpkgs/issues/123561
preCheck = ''
mv fastparquet/test .
rm -rf fastparquet
fastparquet_test="$out"/${python.sitePackages}/fastparquet/test
ln -s `pwd`/test "$fastparquet_test"
'';
postCheck = ''
rm "$fastparquet_test"
'';
# E ModuleNotFoundError: No module named 'fastparquet.speedups'
doCheck = false;
pythonImportsCheck = [ "fastparquet" ];
meta = with lib; {