summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules
diff options
context:
space:
mode:
authorChris Ostrouchov <chris.ostrouchov@gmail.com>2018-10-28 11:27:29 -0400
committerChris Ostrouchov <chris.ostrouchov@gmail.com>2018-10-30 00:50:53 -0400
commit52492477a67fa60d7f2fe7d7cbfbd18d81e711fa (patch)
treeafa1bf9410bcd73d0fac7045e1c8480c355dedce /pkgs/development/python-modules
parentf8e0efb139bca25a422a5e08e57f2819a43dea9b (diff)
pythonPackages.testrepository: refactor move to python-modules
Diffstat (limited to 'pkgs/development/python-modules')
-rw-r--r--pkgs/development/python-modules/testrepository/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/testrepository/default.nix b/pkgs/development/python-modules/testrepository/default.nix
new file mode 100644
index 000000000000..dbc342c1c4da
--- /dev/null
+++ b/pkgs/development/python-modules/testrepository/default.nix
@@ -0,0 +1,34 @@
+{ stdenv
+, buildPythonPackage
+, fetchPypi
+, testtools
+, testresources
+, pbr
+, subunit
+, fixtures
+, python
+}:
+
+buildPythonPackage rec {
+ pname = "testrepository";
+ version = "0.0.20";
+
+ src = fetchPypi {
+ inherit pname version;
+ sha256 = "1ssqb07c277010i6gzzkbdd46gd9mrj0bi0i8vn560n2k2y4j93m";
+ };
+
+ buildInputs = [ testtools testresources ];
+ propagatedBuildInputs = [ pbr subunit fixtures ];
+
+ checkPhase = ''
+ ${python.interpreter} ./testr
+ '';
+
+ meta = with stdenv.lib; {
+ description = "A database of test results which can be used as part of developer workflow";
+ homepage = https://pypi.python.org/pypi/testrepository;
+ license = licenses.bsd2;
+ };
+
+}