ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / fastparquet / default.nix
blobe11aac39f7e65169ffb59071c4cbbdc8ad615a32
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , python
5 , numba
6 , numpy
7 , pandas
8 , cramjam
9 , fsspec
10 , thrift
11 , python-lzo
12 , pytestCheckHook
13 , pythonOlder
16 buildPythonPackage rec {
17   pname = "fastparquet";
18   version = "0.8.1";
19   format = "setuptools";
21   disabled = pythonOlder "3.7";
23   src = fetchFromGitHub {
24     owner = "dask";
25     repo = pname;
26     rev = version;
27     hash = "sha256-rWrbHHcJMahaUV8+YuKkZUhdboNFUK9btjvdg74lCxc=";
28   };
30   propagatedBuildInputs = [
31     cramjam
32     fsspec
33     numba
34     numpy
35     pandas
36     thrift
37   ];
39   passthru.optional-dependencies = {
40     lzo = [
41       python-lzo
42     ];
43   };
45   checkInputs = [
46     pytestCheckHook
47   ];
49   postPatch = ''
50     substituteInPlace setup.py \
51       --replace "'pytest-runner'," "" \
52       --replace "oldest-supported-numpy" "numpy"
53   '';
56   # Workaround https://github.com/NixOS/nixpkgs/issues/123561
57   preCheck = ''
58     mv fastparquet/test .
59     rm -r fastparquet
60     fastparquet_test="$out"/${python.sitePackages}/fastparquet/test
61     ln -s `pwd`/test "$fastparquet_test"
62   '';
64   postCheck = ''
65     rm "$fastparquet_test"
66   '';
68   pythonImportsCheck = [
69     "fastparquet"
70   ];
72   meta = with lib; {
73     description = "A python implementation of the parquet format";
74     homepage = "https://github.com/dask/fastparquet";
75     license = with licenses; [ asl20 ];
76     maintainers = with maintainers; [ veprbl ];
77   };