2019-12-02 23:44:43 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, numba, numpy, pandas, pytestrunner,
|
2020-06-02 18:34:09 +02:00
|
|
|
thrift, pytest, python-snappy, lz4, zstd }:
|
2019-03-20 12:45:58 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "fastparquet";
|
2020-12-29 21:46:48 +01:00
|
|
|
version = "0.5.0";
|
2019-03-20 12:45:58 +01:00
|
|
|
|
2019-12-02 23:44:43 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dask";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2020-12-29 21:46:48 +01:00
|
|
|
sha256 = "17i091kky34m2xivk29fqsyxxxa7v4352n79w01n7ni93za6wana";
|
2019-03-20 12:45:58 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# FIXME: package zstandard
|
|
|
|
# removing the test dependency for now
|
|
|
|
substituteInPlace setup.py --replace "'zstandard'," ""
|
|
|
|
'';
|
|
|
|
|
|
|
|
nativeBuildInputs = [ pytestrunner ];
|
|
|
|
propagatedBuildInputs = [ numba numpy pandas thrift ];
|
2020-06-02 18:34:09 +02:00
|
|
|
checkInputs = [ pytest python-snappy lz4 zstd ];
|
2019-03-20 12:45:58 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A python implementation of the parquet format";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/dask/fastparquet";
|
2019-03-20 12:45:58 +01:00
|
|
|
license = with licenses; [ asl20 ];
|
|
|
|
maintainers = with maintainers; [ veprbl ];
|
|
|
|
};
|
|
|
|
}
|