about summary refs log tree commit diff
path: root/pkgs/development/python-modules/intake-parquet/default.nix
blob: 9ef6affb5119e443c00b3dbccb6eda770c960cd6 (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
45
{ lib
, buildPythonPackage
, fetchFromGitHub
, pandas
, dask
, fastparquet
, pyarrow
}:

buildPythonPackage rec {
  pname = "intake-parquet";
  version = "0.3.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "intake";
    repo = pname;
    rev = version;
    sha256 = "sha256-zSwylXBKOM/tG5mwYtc0FmxwcKJ6j+lw1bxJqf57NY8=";
  };

  propagatedBuildInputs = [
    pandas
    dask
    fastparquet
    pyarrow
  ];

  postPatch = ''
    # Break circular dependency
    substituteInPlace requirements.txt \
      --replace "intake" ""
  '';

  doCheck = false;

  #pythonImportsCheck = [ "intake_parquet" ];

  meta = with lib; {
    description = "Parquet plugin for Intake";
    homepage = "https://github.com/intake/intake-parquet";
    license = licenses.bsd2;
    maintainers = with maintainers; [ fab ];
  };
}