about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/parquet/default.nix
blob: 0e6cd2222f73bb97326fb6efc28c0773cbb9e969 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, python-snappy
, thriftpy2
}:

buildPythonPackage rec {
  pname = "parquet";
  version = "1.3.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "jcrobak";
    repo = "parquet-python";
    rev = "v${version}";
    sha256 = "1ahvg4dz9fzi4vdm9jmslq3v3jahjj17fdcc5fljgcw6h9yxyl2r";
  };

  propagatedBuildInputs = [
    python-snappy
    thriftpy2
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  disabledTests = [
    # Fails with AttributeError
    "test_bson"
    "testFromExample"
  ];

  pythonImportsCheck = [ "thriftpy2" ];

  meta = with lib; {
    description = "Python implementation of the parquet columnar file format";
    homepage = "https://github.com/jcrobak/parquet-python";
    license = licenses.bsd2;
    maintainers = with maintainers; [ fab ];
  };
}