summary refs log tree commit diff
path: root/pkgs/development/python-modules/setuptools-trial/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/setuptools-trial/default.nix')
-rw-r--r--pkgs/development/python-modules/setuptools-trial/default.nix43
1 files changed, 43 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/setuptools-trial/default.nix b/pkgs/development/python-modules/setuptools-trial/default.nix
new file mode 100644
index 00000000000..14f666d311a
--- /dev/null
+++ b/pkgs/development/python-modules/setuptools-trial/default.nix
@@ -0,0 +1,43 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, pythonOlder
+, setuptools
+, twisted
+}:
+
+buildPythonPackage rec {
+  pname = "setuptools-trial";
+  version = "0.6.0";
+  pyproject = true;
+
+  disabled = pythonOlder "3.7";
+
+  src = fetchPypi {
+    pname = "setuptools_trial";
+    inherit version;
+    hash = "sha256-FCIPj3YcSLoeJSbwhxlQd89U+tcJizgs4iBCLw/1mxI=";
+  };
+
+  nativeBuildInputs = [
+    setuptools
+  ];
+
+  propagatedBuildInputs = [
+    twisted
+  ];
+
+  # Couldn't get tests working
+  doCheck = false;
+
+  pythonImportsCheck = [
+    "setuptools_trial"
+  ];
+
+  meta = with lib; {
+    description = "Setuptools plugin that makes unit tests execute with trial instead of pyunit";
+    homepage = "https://github.com/rutsky/setuptools-trial";
+    license = licenses.bsd2;
+    maintainers = with maintainers; [ ryansydnor ];
+  };
+}