summary refs log tree commit diff
path: root/pkgs/development/python-modules/incremental/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/incremental/default.nix')
-rw-r--r--pkgs/development/python-modules/incremental/default.nix36
1 files changed, 31 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/incremental/default.nix b/pkgs/development/python-modules/incremental/default.nix
index b79ba4b7db2..55123163dbf 100644
--- a/pkgs/development/python-modules/incremental/default.nix
+++ b/pkgs/development/python-modules/incremental/default.nix
@@ -1,6 +1,11 @@
-{ lib, buildPythonPackage, fetchPypi }:
+{ lib
+, buildPythonPackage
+, fetchPypi
+, click
+, twisted
+}:
 
-buildPythonPackage rec {
+let incremental = buildPythonPackage rec {
   pname = "incremental";
   version = "21.3.0";
 
@@ -9,10 +14,31 @@ buildPythonPackage rec {
     sha256 = "02f5de5aff48f6b9f665d99d48bfc7ec03b6e3943210de7cfc88856d755d6f57";
   };
 
+  propagatedBuildInputs = [
+    click
+  ];
+
+  # escape infinite recursion with twisted
+  doCheck = false;
+
+  checkInputs = [
+    twisted
+  ];
+
+  checkPhase = ''
+    trial incremental
+  '';
+
+  passthru.tests = {
+    check = incremental.overridePythonAttrs (_: { doCheck = true; });
+  };
+
+  pythonImportsCheck = [ "incremental" ];
+
   meta = with lib; {
-    homepage = "https://github.com/twisted/treq";
+    homepage = "https://github.com/twisted/incremental";
     description = "Incremental is a small library that versions your Python projects";
     license = licenses.mit;
-    maintainers = with maintainers; [ ];
+    maintainers = with maintainers; [ SuperSandro2000 ];
   };
-}
+}; in incremental