Files
nixpkgs/pkgs/development/python-modules/fastparquet/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
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>
2025-12-10 18:09:49 +01:00

83 lines
1.4 KiB
Nix

{
lib,
buildPythonPackage,
cramjam,
cython,
fetchFromGitHub,
fsspec,
git,
numpy,
packaging,
pandas,
pytestCheckHook,
python-lzo,
python,
pythonOlder,
setuptools-scm,
setuptools,
wheel,
}:
buildPythonPackage rec {
pname = "fastparquet";
version = "2024.11.0";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "dask";
repo = "fastparquet";
tag = version;
hash = "sha256-GJ6dr36hGjpfEKcA96RpEqY8I1vXooLDGwc0A57yFTY=";
};
build-system = [
setuptools
setuptools-scm
wheel
];
nativeBuildInputs = [
cython
git
numpy
];
dependencies = [
cramjam
fsspec
numpy
packaging
pandas
];
optional-dependencies = {
lzo = [ python-lzo ];
};
nativeCheckInputs = [ pytestCheckHook ];
# Workaround https://github.com/NixOS/nixpkgs/issues/123561
preCheck = ''
mv fastparquet/test .
rm -r fastparquet
fastparquet_test="$out"/${python.sitePackages}/fastparquet/test
ln -s `pwd`/test "$fastparquet_test"
'';
postCheck = ''
rm "$fastparquet_test"
'';
pythonImportsCheck = [ "fastparquet" ];
meta = {
description = "Implementation of the parquet format";
homepage = "https://github.com/dask/fastparquet";
changelog = "https://github.com/dask/fastparquet/blob/${version}/docs/source/releasenotes.rst";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ veprbl ];
};
}