3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/fastparquet/default.nix

32 lines
898 B
Nix
Raw Normal View History

2019-12-02 22:44:43 +00:00
{ lib, buildPythonPackage, fetchFromGitHub, numba, numpy, pandas, pytestrunner,
thrift, pytest, python-snappy, lz4, zstd }:
buildPythonPackage rec {
pname = "fastparquet";
version = "0.4.0";
2019-12-02 22:44:43 +00:00
src = fetchFromGitHub {
owner = "dask";
repo = pname;
rev = version;
sha256 = "0y89gmcfylxqm8rs1fbirwjzmhcvlfx8fhvkm3ssbj1ivfd5mdlr";
};
postPatch = ''
# FIXME: package zstandard
# removing the test dependency for now
substituteInPlace setup.py --replace "'zstandard'," ""
'';
nativeBuildInputs = [ pytestrunner ];
propagatedBuildInputs = [ numba numpy pandas thrift ];
checkInputs = [ pytest python-snappy lz4 zstd ];
meta = with lib; {
description = "A python implementation of the parquet format";
homepage = "https://github.com/dask/fastparquet";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ veprbl ];
};
}