about summary refs log tree commit diff
path: root/pkgs/development/python-modules/stopit
diff options
context:
space:
mode:
authorDmitry Kalinkin <dmitry.kalinkin@gmail.com>2021-06-22 17:17:43 -0400
committerDmitry Kalinkin <dmitry.kalinkin@gmail.com>2021-06-24 11:36:25 -0400
commit97d56c16c69af24fe4e39aedf0aa4d63546b7116 (patch)
tree3ac49271450b221dbcd63a8191d2d3e738811675 /pkgs/development/python-modules/stopit
parentb8e7504c2b8f38c37af2bc0063a6683a7570ff1d (diff)
pythonPackages.stopit: init at 1.1.2
Diffstat (limited to 'pkgs/development/python-modules/stopit')
-rw-r--r--pkgs/development/python-modules/stopit/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/stopit/default.nix b/pkgs/development/python-modules/stopit/default.nix
new file mode 100644
index 0000000000000..4d504da674c5d
--- /dev/null
+++ b/pkgs/development/python-modules/stopit/default.nix
@@ -0,0 +1,26 @@
+{ lib
+, buildPythonPackage
+, fetchFromGitHub
+}:
+
+buildPythonPackage rec {
+  pname = "stopit";
+  version = "1.1.2";
+
+  # tests are missing from the PyPi tarball
+  src = fetchFromGitHub {
+    owner = "glenfant";
+    repo = pname;
+    rev = version;
+    sha256 = "sha256-uXJUA70JOGWT2NmS6S7fPrTWAJZ0mZ/hICahIUzjfbw=";
+  };
+
+  pythonImportsCheck = [ "stopit" ];
+
+  meta = with lib; {
+    description = "Raise asynchronous exceptions in other thread, control the timeout of blocks or callables with a context manager or a decorator";
+    homepage = "https://github.com/glenfant/stopit";
+    license = with licenses; [ mit ];
+    maintainers = with maintainers; [ veprbl ];
+  };
+}