Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.7 kB · 88 lines
Nix
at llvm-cleanup
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889{ lib, buildPythonPackage, cramjam, cython, fetchFromGitHub, fsspec, git, numpy, oldest-supported-numpy, packaging, pandas, pytestCheckHook, python-lzo, python, pythonOlder, setuptools-scm, setuptools, wheel,}:
buildPythonPackage rec { pname = "fastparquet"; version = "2024.5.0"; pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub { owner = "dask"; repo = "fastparquet"; rev = "refs/tags/${version}"; hash = "sha256-YiaVkpPzH8ZmTiEtCom9xLbKzByIt7Ilig/WlmGrYH4="; };
postPatch = '' substituteInPlace pyproject.toml \ --replace-fail "numpy>=2.0.0rc1" "oldest-supported-numpy" '';
build-system = [ setuptools setuptools-scm wheel ];
nativeBuildInputs = [ cython git oldest-supported-numpy ];
dependencies = [ cramjam fsspec numpy packaging pandas ];
passthru.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 = with lib; { 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 = licenses.asl20; maintainers = with maintainers; [ veprbl ]; };}