@@ -1,28 +1,47 @@
1−{ stdenv, pythonPackages, glibcLocales} :
1+{ stdenv
2+, lib
3+, pythonPackages
4+, glibcLocales
5+, devpi-server
6+, git
7+, mercurial
8+} :
29
310pythonPackages.buildPythonApplication rec {
411 name = "${pname}-${version}";
512 pname = "devpi-client";
6− version = "3.1.0rc1";
13+ version = "3.1.0";
714
815 src = pythonPackages.fetchPypi {
916 inherit pname version;
10− sha256 = "0kfyva886k9zxmilqb2yviwqzyvs3n36if3s56y4clbvw9hr2lc3";
17+ sha256 = "0w47x3lkafcg9ijlaxllmq4886nsc91w49ck1cd7vn2gafkwjkgr";
1118 };
12− # requires devpi-server which is currently not packaged
13− doCheck = true;
14− checkInputs = with pythonPackages; [ pytest webtest mock ];
15− checkPhase = "py.test";
19+
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+ '';
1635
1736 LC_ALL = "en_US.UTF-8";
18− buildInputs = with pythonPackages; [ glibcLocales pkginfo tox check-manifest ];
19− propagatedBuildInputs = with pythonPackages; [ py devpi-common pluggy ];
37+ buildInputs = with pythonPackages; [ glibcLocales pkginfo check-manifest ];
38+ propagatedBuildInputs = with pythonPackages; [ py devpi-common pluggy setuptools ];
2039
21− meta = {
40+ meta = with stdenv.lib; {
2241 homepage = http://doc.devpi.net;
23− description = "Github-style pypi index server and packaging meta tool";
24− license = stdenv.lib.licenses.mit;
25− maintainers = with stdenv.lib.maintainers; [ lewo makefu ];
26−
42+ description = "Client for devpi, a pypi index server and packaging meta tool";
43+ license = licenses.mit;
44+ maintainers = with maintainers; [ lewo makefu ];
2745 };
46+
2847}