summary refs log tree commit diff
path: root/pkgs/development
diff options
context:
space:
mode:
authorSandro <sandro.jaeckel@gmail.com>2021-07-21 16:08:21 +0200
committerGitHub <noreply@github.com>2021-07-21 16:08:21 +0200
commit8ca1a0ba91af67270cbb6901f1b1c6dcb7342116 (patch)
treedd34889a7485dc4c7ab0d6afd607576f757d40ce /pkgs/development
parent26593dfdab404e89d02a8315a6b3bb4415a1667c (diff)
parentaee461ddb4cd3e48c0bfd1b0039dcfb9a9db1355 (diff)
downloadnixpkgs-8ca1a0ba91af67270cbb6901f1b1c6dcb7342116.tar
nixpkgs-8ca1a0ba91af67270cbb6901f1b1c6dcb7342116.tar.gz
nixpkgs-8ca1a0ba91af67270cbb6901f1b1c6dcb7342116.tar.bz2
nixpkgs-8ca1a0ba91af67270cbb6901f1b1c6dcb7342116.tar.lz
nixpkgs-8ca1a0ba91af67270cbb6901f1b1c6dcb7342116.tar.xz
nixpkgs-8ca1a0ba91af67270cbb6901f1b1c6dcb7342116.tar.zst
nixpkgs-8ca1a0ba91af67270cbb6901f1b1c6dcb7342116.zip
Merge pull request #130897 from veprbl/pr/toil
Diffstat (limited to 'pkgs/development')
-rw-r--r--pkgs/development/python-modules/addict/default.nix26
-rw-r--r--pkgs/development/python-modules/enlighten/default.nix37
-rw-r--r--pkgs/development/python-modules/prefixed/default.nix26
3 files changed, 89 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/addict/default.nix b/pkgs/development/python-modules/addict/default.nix
new file mode 100644
index 00000000000..2bb531cff90
--- /dev/null
+++ b/pkgs/development/python-modules/addict/default.nix
@@ -0,0 +1,26 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "addict";
+  version = "2.4.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "b3b2210e0e067a281f5646c8c5db92e99b7231ea8b0eb5f74dbdf9e259d4e494";
+  };
+
+  checkInputs = [ pytestCheckHook ];
+
+  pythonImportsCheck = [ "addict" ];
+
+  meta = with lib; {
+    description = "Module that exposes a dictionary subclass that allows items to be set like attributes";
+    homepage = "https://github.com/mewwts/addict";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ veprbl ];
+  };
+}
diff --git a/pkgs/development/python-modules/enlighten/default.nix b/pkgs/development/python-modules/enlighten/default.nix
new file mode 100644
index 00000000000..8f58720bd26
--- /dev/null
+++ b/pkgs/development/python-modules/enlighten/default.nix
@@ -0,0 +1,37 @@
+{ lib
+, stdenv
+, buildPythonPackage
+, fetchPypi
+, blessed
+, prefixed
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "enlighten";
+  version = "1.10.1";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "3391916586364aedced5d6926482b48745e4948f822de096d32258ba238ea984";
+  };
+
+  propagatedBuildInputs = [
+    blessed
+    prefixed
+  ];
+  checkInputs = [ pytestCheckHook ];
+
+  pythonImportsCheck = [ "enlighten" ];
+  disabledTests =
+    # https://github.com/Rockhopper-Technologies/enlighten/issues/44
+    lib.optional stdenv.isDarwin "test_autorefresh"
+    ;
+
+  meta = with lib; {
+    description = "Enlighten Progress Bar for Python Console Apps";
+    homepage = "https://github.com/Rockhopper-Technologies/enlighten";
+    license = with licenses; [ mpl20 ];
+    maintainers = with maintainers; [ veprbl ];
+  };
+}
diff --git a/pkgs/development/python-modules/prefixed/default.nix b/pkgs/development/python-modules/prefixed/default.nix
new file mode 100644
index 00000000000..d5837fd90a1
--- /dev/null
+++ b/pkgs/development/python-modules/prefixed/default.nix
@@ -0,0 +1,26 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pytestCheckHook
+}:
+
+buildPythonPackage rec {
+  pname = "prefixed";
+  version = "0.3.2";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "ca48277ba5fa8346dd4b760847da930c7b84416387c39e93affef086add2c029";
+  };
+
+  checkInputs = [ pytestCheckHook ];
+
+  pythonImportsCheck = [ "prefixed" ];
+
+  meta = with lib; {
+    description = "Prefixed alternative numeric library";
+    homepage = "https://github.com/Rockhopper-Technologies/prefixed";
+    license = with licenses; [ mpl20 ];
+    maintainers = with maintainers; [ veprbl ];
+  };
+}