mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +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.
36 lines
844 B
Nix
36 lines
844 B
Nix
{ buildPythonPackage
|
|
, callPackage
|
|
, pytest-cov
|
|
, fetchPypi
|
|
, lib
|
|
, pytest
|
|
, pythonOlder
|
|
, pytest-runner
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycategories";
|
|
version = "1.2.0";
|
|
disabled = pythonOlder "3.4";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "bd70ecb5e94e7659e564ea153f0c7673291dc37c526c246800fc08d6c5378099";
|
|
};
|
|
|
|
nativeBuildInputs = [ pytest-runner ];
|
|
|
|
# Is private because the author states it's unmaintained
|
|
# and shouldn't be used in production code
|
|
propagatedBuildInputs = [ (callPackage ./infix.nix { }) ];
|
|
|
|
nativeCheckInputs = [ pytest pytest-cov ];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://gitlab.com/danielhones/pycategories";
|
|
description = "Implementation of some concepts from category theory";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ dmvianna ];
|
|
};
|
|
}
|