about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/python-utils/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/python-utils/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/python-utils/default.nix30
1 files changed, 30 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/python-utils/default.nix b/nixpkgs/pkgs/development/python-modules/python-utils/default.nix
new file mode 100644
index 000000000000..67fbd4e24ebe
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/python-utils/default.nix
@@ -0,0 +1,30 @@
+{ lib, buildPythonPackage, fetchPypi, pytest, pytestrunner, pytestcov, pytest-flakes, pytestpep8, sphinx, six }:
+
+buildPythonPackage rec {
+  pname = "python-utils";
+  version = "2.3.0";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "34aaf26b39b0b86628008f2ae0ac001b30e7986a8d303b61e1357dfcdad4f6d3";
+  };
+
+  postPatch = ''
+    rm -r tests/__pycache__
+    rm tests/*.pyc
+  '';
+
+  checkInputs = [ pytest pytestrunner pytestcov pytest-flakes pytestpep8 sphinx ];
+
+  checkPhase = ''
+    py.test tests
+  '';
+
+  propagatedBuildInputs = [ six ];
+
+  meta = with lib; {
+    description = "Module with some convenient utilities";
+    homepage = "https://github.com/WoLpH/python-utils";
+    license = licenses.bsd3;
+  };
+}