about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pycategories
diff options
context:
space:
mode:
authorDaniel Vianna <dmlvianna@gmail.com>2019-06-25 18:43:21 +1000
committerworldofpeace <worldofpeace@protonmail.ch>2019-06-25 09:50:14 -0400
commite37eddc8c0cf7aa15b9623af0393384b16397fb1 (patch)
tree825cec9629d66ee527aa9bf839bd43ab660e9979 /pkgs/development/python-modules/pycategories
parente478e6bdff2f8de59ecebd5e3377d03d5150e8a0 (diff)
downloadnixlib-e37eddc8c0cf7aa15b9623af0393384b16397fb1.tar
nixlib-e37eddc8c0cf7aa15b9623af0393384b16397fb1.tar.gz
nixlib-e37eddc8c0cf7aa15b9623af0393384b16397fb1.tar.bz2
nixlib-e37eddc8c0cf7aa15b9623af0393384b16397fb1.tar.lz
nixlib-e37eddc8c0cf7aa15b9623af0393384b16397fb1.tar.xz
nixlib-e37eddc8c0cf7aa15b9623af0393384b16397fb1.tar.zst
nixlib-e37eddc8c0cf7aa15b9623af0393384b16397fb1.zip
pythonPackages.pycategories: init at 1.2.0
Diffstat (limited to 'pkgs/development/python-modules/pycategories')
-rw-r--r--pkgs/development/python-modules/pycategories/default.nix35
-rw-r--r--pkgs/development/python-modules/pycategories/infix.nix23
2 files changed, 58 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pycategories/default.nix b/pkgs/development/python-modules/pycategories/default.nix
new file mode 100644
index 000000000000..55f30f9e55a9
--- /dev/null
+++ b/pkgs/development/python-modules/pycategories/default.nix
@@ -0,0 +1,35 @@
+{ buildPythonPackage
+, callPackage
+, pytestcov
+, fetchPypi
+, lib
+, pytest
+, pythonOlder
+, pytestrunner
+}:
+
+buildPythonPackage rec {
+  pname = "pycategories";
+  version = "1.2.0";
+  disabled = pythonOlder "3.4";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "bd70ecb5e94e7659e564ea153f0c7673291dc37c526c246800fc08d6c5378099";
+  };
+
+  nativeBuildInputs = [ pytestrunner ];
+
+  # Is private because the author states it's unmaintained
+  # and shouldn't be used in production code
+  propagatedBuildInputs = [ (callPackage ./infix.nix { }) ];
+
+  checkInputs = [ pytest pytestcov ];
+
+  meta = with lib; {
+    homepage = "https://gitlab.com/danielhones/pycategories";
+    description = "Implementation of some concepts from category theory";
+    license = licenses.mit;
+    maintainers = with maintainers; [ dmvianna ];
+  };
+}
diff --git a/pkgs/development/python-modules/pycategories/infix.nix b/pkgs/development/python-modules/pycategories/infix.nix
new file mode 100644
index 000000000000..f3b4d2548181
--- /dev/null
+++ b/pkgs/development/python-modules/pycategories/infix.nix
@@ -0,0 +1,23 @@
+{ buildPythonPackage
+, lib
+, fetchPypi
+}:
+
+buildPythonPackage rec {
+  pname = "infix";
+  version = "1.2";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "a1bfdcf875bc072f41e426d0673f2e3017750743bb90cc725fffb292eb09648c";
+  };
+
+  # No tests
+  doCheck = false;
+
+  meta = {
+    homepage = "https://github.com/borntyping/python-infix";
+    description = "A decorator that allows functions to be used as infix functions";
+    license = lib.licenses.mit;
+  };
+}