depot/third_party/nixpkgs/pkgs/development/python-modules/intake-parquet/default.nix
Default email c7cb07f092 Project import generated by Copybara.
GitOrigin-RevId: 1536926ef5621b09bba54035ae2bb6d806d72ac8
2024-02-29 21:09:43 +01:00

53 lines
959 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pandas
, dask
, fastparquet
, pyarrow
, setuptools
, pythonOlder
}:
buildPythonPackage rec {
pname = "intake-parquet";
version = "0.3.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "intake";
repo = "intake-parquet";
rev = "refs/tags/${version}";
hash = "sha256-zSwylXBKOM/tG5mwYtc0FmxwcKJ6j+lw1bxJqf57NY8=";
};
postPatch = ''
# Break circular dependency
substituteInPlace requirements.txt \
--replace-fail "intake" ""
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
pandas
dask
fastparquet
pyarrow
];
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 ];
};
}