Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253{ lib, buildPythonPackage, fetchFromGitHub, pytestCheckHook, cython, setuptools, toolz,}:
buildPythonPackage (finalAttrs: { pname = "cytoolz"; version = "1.2.0"; pyproject = true;
src = fetchFromGitHub { owner = "pytoolz"; repo = "cytoolz"; tag = finalAttrs.version; hash = "sha256-dIrhekZTxfdaxwcQYc00gIt45GAzH/qiHpVXHc9x3Pw="; };
postPatch = '' sed -i "/setuptools-git-versioning >=/d" pyproject.toml substituteInPlace pyproject.toml \ --replace-fail "dynamic = [\"version\"]" "version = \"${finalAttrs.version}\"" '';
build-system = [ cython setuptools ];
dependencies = [ toolz ];
# tests are located in cytoolz/tests, but we need to prevent import from the cytoolz source preCheck = '' mv cytoolz/tests tests rm -rf cytoolz sed -i "/testpaths/d" pyproject.toml '';
nativeCheckInputs = [ pytestCheckHook ];
meta = { homepage = "https://github.com/pytoolz/cytoolz/"; changelog = "https://github.com/pytoolz/cytoolz/releases/tag/${finalAttrs.src.tag}"; description = "Cython implementation of Toolz: High performance functional utilities"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ sarahec ]; };})