2019-12-02 22:44:43 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, numba, numpy, pandas, pytestrunner,
|
2019-12-02 21:19:45 +00:00
|
|
|
thrift, pytest, python-snappy, lz4 }:
|
2019-03-20 11:45:58 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fastparquet";
|
2020-02-14 17:00:59 +00:00
|
|
|
version = "0.3.3";
|
2019-03-20 11:45:58 +00:00
|
|
|
|
2019-12-02 22:44:43 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dask";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-02-14 17:00:59 +00:00
|
|
|
sha256 = "1vnxr4r0bia2zi9csjw342l507nic6an4hr5xb3a36ggqlbaa0g5";
|
2019-03-20 11:45:58 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|