1{ lib, buildPythonPackage, fetchFromGitHub, numba, numpy, pandas, pytestrunner,
2thrift, pytest, python-snappy, lz4, zstd }:
3
4buildPythonPackage rec {
5 pname = "fastparquet";
6 version = "0.4.0";
7
8 src = fetchFromGitHub {
9 owner = "dask";
10 repo = pname;
11 rev = version;
12 sha256 = "0y89gmcfylxqm8rs1fbirwjzmhcvlfx8fhvkm3ssbj1ivfd5mdlr";
13 };
14
15 postPatch = ''
16 # FIXME: package zstandard
17 # removing the test dependency for now
18 substituteInPlace setup.py --replace "'zstandard'," ""
19 '';
20
21 nativeBuildInputs = [ pytestrunner ];
22 propagatedBuildInputs = [ numba numpy pandas thrift ];
23 checkInputs = [ pytest python-snappy lz4 zstd ];
24
25 meta = with lib; {
26 description = "A python implementation of the parquet format";
27 homepage = "https://github.com/dask/fastparquet";
28 license = with licenses; [ asl20 ];
29 maintainers = with maintainers; [ veprbl ];
30 };
31}