pythonPackages.fastparquet: add zstandard, disable tests due to breakage

This commit is contained in:
Sandro Jäckel 2021-02-16 01:24:31 +01:00
parent f857b59a9e
commit 2135a3d7b0
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -1,5 +1,5 @@
{ lib, buildPythonPackage, fetchFromGitHub, numba, numpy, pandas, pytestrunner, { lib, buildPythonPackage, fetchFromGitHub, numba, numpy, pandas, pytestrunner
thrift, pytestCheckHook, python-snappy, lz4, zstd }: , thrift, pytestCheckHook, python-snappy, lz4, zstandard, zstd }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "fastparquet"; pname = "fastparquet";
@ -12,16 +12,12 @@ buildPythonPackage rec {
sha256 = "17i091kky34m2xivk29fqsyxxxa7v4352n79w01n7ni93za6wana"; sha256 = "17i091kky34m2xivk29fqsyxxxa7v4352n79w01n7ni93za6wana";
}; };
postPatch = ''
# FIXME: package zstandard
# removing the test dependency for now
substituteInPlace setup.py --replace "'zstandard'," ""
'';
nativeBuildInputs = [ pytestrunner ]; nativeBuildInputs = [ pytestrunner ];
propagatedBuildInputs = [ numba numpy pandas thrift ]; propagatedBuildInputs = [ numba numpy pandas thrift ];
checkInputs = [ pytestCheckHook python-snappy lz4 zstd ]; checkInputs = [ pytestCheckHook python-snappy lz4 zstandard zstd ];
# E ModuleNotFoundError: No module named 'fastparquet.speedups'
doCheck = false;
pythonImportsCheck = [ "fastparquet" ]; pythonImportsCheck = [ "fastparquet" ];
meta = with lib; { meta = with lib; {