fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
59 lines
1 KiB
Nix
59 lines
1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
dask,
|
|
fastparquet,
|
|
fetchFromGitHub,
|
|
pandas,
|
|
pyarrow,
|
|
pythonOlder,
|
|
setuptools,
|
|
versioneer,
|
|
}:
|
|
|
|
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" ""
|
|
|
|
# Remove vendorized versioneer.py
|
|
rm versioneer.py
|
|
'';
|
|
|
|
build-system = [
|
|
setuptools
|
|
versioneer
|
|
];
|
|
|
|
dependencies = [
|
|
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 ];
|
|
};
|
|
}
|