@@ -0,0 +1,35 @@
1+{ buildPythonPackage
2+, callPackage
3+, pytestcov
4+, fetchPypi
5+, lib
6+, pytest
7+, pythonOlder
8+, pytestrunner
9+}:
10+
11+buildPythonPackage 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 = [ pytestrunner ];
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 pytestcov ];
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+}