1{ buildPythonPackage 2, callPackage 3, pytest-cov 4, fetchPypi 5, lib 6, pytest 7, pythonOlder 8, pytest-runner 9}: 10 11buildPythonPackage rec { 12 pname = "pycategories"; 13 version = "1.2.0"; 14 disabled = pythonOlder "3.4"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "bd70ecb5e94e7659e564ea153f0c7673291dc37c526c246800fc08d6c5378099"; 19 }; 20 21 nativeBuildInputs = [ pytest-runner ]; 22 23 # Is private because the author states it's unmaintained 24 # and shouldn't be used in production code 25 propagatedBuildInputs = [ (callPackage ./infix.nix { }) ]; 26 27 checkInputs = [ pytest pytest-cov ]; 28 29 meta = with lib; { 30 homepage = "https://gitlab.com/danielhones/pycategories"; 31 description = "Implementation of some concepts from category theory"; 32 license = licenses.mit; 33 maintainers = with maintainers; [ dmvianna ]; 34 }; 35}