567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
59 lines
987 B
Nix
59 lines
987 B
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";
|
|
tag = version;
|
|
hash = "sha256-zSwylXBKOM/tG5mwYtc0FmxwcKJ6j+lw1bxJqf57NY8=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# Remove vendorized versioneer.py
|
|
rm versioneer.py
|
|
'';
|
|
|
|
# Break circular dependency
|
|
pythonRemoveDeps = [ "intake" ];
|
|
|
|
build-system = [
|
|
setuptools
|
|
versioneer
|
|
];
|
|
|
|
dependencies = [
|
|
pandas
|
|
dask
|
|
fastparquet
|
|
pyarrow
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
#pythonImportsCheck = [ "intake_parquet" ];
|
|
|
|
meta = {
|
|
description = "Parquet plugin for Intake";
|
|
homepage = "https://github.com/intake/intake-parquet";
|
|
license = lib.licenses.bsd2;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|