2019-06-25 08:43:21 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, callPackage
|
2021-07-20 20:42:24 +00:00
|
|
|
, pytest-cov
|
2019-06-25 08:43:21 +00:00
|
|
|
, fetchPypi
|
|
|
|
, lib
|
|
|
|
, pytest
|
|
|
|
, pythonOlder
|
2021-07-20 21:07:53 +00:00
|
|
|
, pytest-runner
|
2019-06-25 08:43:21 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycategories";
|
|
|
|
version = "1.2.0";
|
|
|
|
disabled = pythonOlder "3.4";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "bd70ecb5e94e7659e564ea153f0c7673291dc37c526c246800fc08d6c5378099";
|
|
|
|
};
|
|
|
|
|
2021-07-20 21:07:53 +00:00
|
|
|
nativeBuildInputs = [ pytest-runner ];
|
2019-06-25 08:43:21 +00:00
|
|
|
|
|
|
|
# Is private because the author states it's unmaintained
|
|
|
|
# and shouldn't be used in production code
|
|
|
|
propagatedBuildInputs = [ (callPackage ./infix.nix { }) ];
|
|
|
|
|
2021-07-20 20:42:24 +00:00
|
|
|
checkInputs = [ pytest pytest-cov ];
|
2019-06-25 08:43:21 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://gitlab.com/danielhones/pycategories";
|
|
|
|
description = "Implementation of some concepts from category theory";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ dmvianna ];
|
|
|
|
};
|
|
|
|
}
|