mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
42 lines
909 B
Nix
42 lines
909 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, isPyPy
|
|
, pytestCheckHook
|
|
, cython
|
|
, toolz
|
|
, python
|
|
, isPy27
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "cytoolz";
|
|
version = "0.12.1";
|
|
disabled = isPy27 || isPyPy;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "sha256-/DOQk5dIHJDePOyDG/uI2X4iDckZOdmWkgIC8YS0ZI4=";
|
|
};
|
|
|
|
nativeBuildInputs = [ cython ];
|
|
|
|
propagatedBuildInputs = [ toolz ];
|
|
|
|
# tests are located in cytoolz/tests, however we can't import cytoolz
|
|
# from $PWD, as it will break relative imports
|
|
preCheck = ''
|
|
cd cytoolz
|
|
export PYTHONPATH=$out/${python.sitePackages}:$PYTHONPATH
|
|
'';
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/pytoolz/cytoolz/";
|
|
description = "Cython implementation of Toolz: High performance functional utilities";
|
|
license = "licenses.bsd3";
|
|
maintainers = with lib.maintainers; [ fridh ];
|
|
};
|
|
}
|