about summary refs log tree commit diff
path: root/pkgs/development/python-modules/os-testr
diff options
context:
space:
mode:
authorLancelot SIX <lsix@lancelotsix.com>2017-05-03 22:18:23 +0200
committerLancelot SIX <lsix@lancelotsix.com>2017-05-03 23:17:55 +0200
commit7f5ddfe52f8c2bc064f78b625d60ffeece19f1be (patch)
tree07585061797f612b9dd0085f800a351df82aee27 /pkgs/development/python-modules/os-testr
parent1631f361433b4b1b040a59e731997e8bf4866caf (diff)
downloadnixlib-7f5ddfe52f8c2bc064f78b625d60ffeece19f1be.tar
nixlib-7f5ddfe52f8c2bc064f78b625d60ffeece19f1be.tar.gz
nixlib-7f5ddfe52f8c2bc064f78b625d60ffeece19f1be.tar.bz2
nixlib-7f5ddfe52f8c2bc064f78b625d60ffeece19f1be.tar.lz
nixlib-7f5ddfe52f8c2bc064f78b625d60ffeece19f1be.tar.xz
nixlib-7f5ddfe52f8c2bc064f78b625d60ffeece19f1be.tar.zst
nixlib-7f5ddfe52f8c2bc064f78b625d60ffeece19f1be.zip
pythonPackages.os-testr: 0.4.2 -> 0.8.1
Diffstat (limited to 'pkgs/development/python-modules/os-testr')
-rw-r--r--pkgs/development/python-modules/os-testr/default.nix32
1 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/os-testr/default.nix b/pkgs/development/python-modules/os-testr/default.nix
new file mode 100644
index 000000000000..3dbf54102e90
--- /dev/null
+++ b/pkgs/development/python-modules/os-testr/default.nix
@@ -0,0 +1,32 @@
+{ stdenv, buildPythonPackage, fetchurl, python,
+  pbr, Babel, testrepository, subunit, testtools,
+  coverage, oslosphinx, oslotest, testscenarios, six, ddt 
+}:
+buildPythonPackage rec {
+  name = "os-testr-${version}";
+  version = "0.8.1";
+
+  src = fetchurl {
+    url = "mirror://pypi/o/os-testr/${name}.tar.gz";
+    sha256 = "10ws7l5p25psnp6rwymwdzh4zagmmnbf56xwg06cn2292m95l4i7";
+  };
+
+  patchPhase = ''
+    sed -i 's@python@${python.interpreter}@' .testr.conf
+    sed -i 's@python@${python.interpreter}@' os_testr/tests/files/testr-conf
+  '';
+
+  checkPhase = ''
+    export PATH=$PATH:$out/bin
+    ${python.interpreter} setup.py test
+  '';
+
+  propagatedBuildInputs = [ pbr Babel testrepository subunit testtools ];
+  buildInputs = [ coverage oslosphinx oslotest testscenarios six ddt ];
+
+  meta = with stdenv.lib; {
+    description = "A testr wrapper to provide functionality for OpenStack projects";
+    homepage  = http://docs.openstack.org/developer/os-testr/;
+    license = licenses.asl20;
+  };
+}