about summary refs log tree commit diff
path: root/pkgs/development/tools/devpi-client
diff options
context:
space:
mode:
authormakefu <github@syntax-fehler.de>2017-12-05 11:30:07 +0100
committermakefu <github@syntax-fehler.de>2017-12-05 13:31:55 +0100
commit7e39ecba684a9e1e64a6f18c69543a170a36bd52 (patch)
treec88c611435e9d1d7df6f414e675004af7c78230d /pkgs/development/tools/devpi-client
parent29672cf7ce7ec30a19960210f88daca17232d2ad (diff)
devpi-client: enable tests
Diffstat (limited to 'pkgs/development/tools/devpi-client')
-rw-r--r--pkgs/development/tools/devpi-client/default.nix35
1 files changed, 25 insertions, 10 deletions
diff --git a/pkgs/development/tools/devpi-client/default.nix b/pkgs/development/tools/devpi-client/default.nix
index 76b35d65b2161..6a98befd346ec 100644
--- a/pkgs/development/tools/devpi-client/default.nix
+++ b/pkgs/development/tools/devpi-client/default.nix
@@ -1,7 +1,10 @@
 { stdenv
+, lib
 , pythonPackages
 , glibcLocales
 , devpi-server
+, git
+, mercurial
 } :
 
 pythonPackages.buildPythonApplication rec {
@@ -14,19 +17,31 @@ pythonPackages.buildPythonApplication rec {
     sha256 = "0w47x3lkafcg9ijlaxllmq4886nsc91w49ck1cd7vn2gafkwjkgr";
   };
 
-  doCheck = true;
-  checkInputs = with pythonPackages; [ pytest webtest mock devpi-server ];
-  checkPhase = "py.test";
+  checkInputs = with pythonPackages; [
+                    pytest webtest mock
+                    devpi-server tox
+                    sphinx wheel git mercurial detox
+                    setuptools
+                    ];
+  checkPhase = ''
+    export PATH=$PATH:$out/bin
+
+    # setuptools do not get propagated into the tox call (cannot import setuptools)
+    rm testing/test_test.py
+
+    # test tries to connect to upstream pypi
+    py.test -k 'not test_pypi_index_attributes' testing
+  '';
 
   LC_ALL = "en_US.UTF-8";
-  buildInputs = with pythonPackages; [ glibcLocales pkginfo tox check-manifest ];
-  propagatedBuildInputs = with pythonPackages; [ py devpi-common pluggy ];
+  buildInputs = with pythonPackages; [ glibcLocales pkginfo check-manifest ];
+  propagatedBuildInputs = with pythonPackages; [ py devpi-common pluggy setuptools ];
 
-  meta = {
+  meta = with stdenv.lib; {
     homepage = http://doc.devpi.net;
-    description = "Github-style pypi index server and packaging meta tool";
-    license = stdenv.lib.licenses.mit;
-    maintainers = with stdenv.lib.maintainers; [ lewo makefu ];
-
+    description = "Client for devpi, a pypi index server and packaging meta tool";
+    license = licenses.mit;
+    maintainers = with maintainers; [ lewo makefu ];
   };
+
 }