git.iko.soy/typeable/nixpkgs
on master help sign in
devpi-client: enable tests
commit7e39ecba684a9e1e64a6f18c69543a170a36bd52 authormakefu <github@syntax-fehler.de> dateTue 5 Dec 2017, 11:30 (9 years ago) parent29672cf
1 file changed+25−10
pkgs/development/tools/devpi-client/default.nix+25−10
pkgs/development/tools/devpi-client/default.nix+25−10
@@ -1,7 +1,10 @@
11{ stdenv
2+, lib
23, pythonPackages
34, glibcLocales
45, devpi-server
6+, git
7+, mercurial
58} :
69
710pythonPackages.buildPythonApplication rec {
@@ -14,19 +17,31 @@ pythonPackages.buildPythonApplication rec {
1417 sha256 = "0w47x3lkafcg9ijlaxllmq4886nsc91w49ck1cd7vn2gafkwjkgr";
1518 };
1619
17− doCheck = true;
18− checkInputs = with pythonPackages; [ pytest webtest mock devpi-server ];
19− checkPhase = "py.test";
20+ checkInputs = with pythonPackages; [
21+ pytest webtest mock
22+ devpi-server tox
23+ sphinx wheel git mercurial detox
24+ setuptools
25+ ];
26+ checkPhase = ''
27+ export PATH=$PATH:$out/bin
28+
29+ # setuptools do not get propagated into the tox call (cannot import setuptools)
30+ rm testing/test_test.py
31+
32+ # test tries to connect to upstream pypi
33+ py.test -k 'not test_pypi_index_attributes' testing
34+ '';
2035
2136 LC_ALL = "en_US.UTF-8";
22− buildInputs = with pythonPackages; [ glibcLocales pkginfo tox check-manifest ];
23− propagatedBuildInputs = with pythonPackages; [ py devpi-common pluggy ];
37+ buildInputs = with pythonPackages; [ glibcLocales pkginfo check-manifest ];
38+ propagatedBuildInputs = with pythonPackages; [ py devpi-common pluggy setuptools ];
2439
25− meta = {
40+ meta = with stdenv.lib; {
2641 homepage = http://doc.devpi.net;
27− description = "Github-style pypi index server and packaging meta tool";
28− license = stdenv.lib.licenses.mit;
29− maintainers = with stdenv.lib.maintainers; [ lewo makefu ];
30−
42+ description = "Client for devpi, a pypi index server and packaging meta tool";
43+ license = licenses.mit;
44+ maintainers = with maintainers; [ lewo makefu ];
3145 };
46+
3247}