1{ stdenv
2, pythonPackages
3, glibcLocales
4, devpi-server
5, git
6, mercurial
7} :
8
9pythonPackages.buildPythonApplication rec {
10 name = "${pname}-${version}";
11 pname = "devpi-client";
12 version = "3.1.0";
13
14 src = pythonPackages.fetchPypi {
15 inherit pname version;
16 sha256 = "0w47x3lkafcg9ijlaxllmq4886nsc91w49ck1cd7vn2gafkwjkgr";
17 };
18
19 checkInputs = with pythonPackages; [
20 pytest webtest mock
21 devpi-server tox
22 sphinx wheel git mercurial detox
23 setuptools
24 ];
25 checkPhase = ''
26 export PATH=$PATH:$out/bin
27
28 # setuptools do not get propagated into the tox call (cannot import setuptools)
29 rm testing/test_test.py
30
31 # test_pypi_index_attributes tries to connect to upstream pypi
32 # test_download_release_error is fixed in the next release
33 py.test -k 'not test_pypi_index_attributes and not test_download_release_error' testing
34 '';
35
36 LC_ALL = "en_US.UTF-8";
37 buildInputs = with pythonPackages; [ glibcLocales pkginfo check-manifest ];
38 propagatedBuildInputs = with pythonPackages; [ py devpi-common pluggy setuptools ];
39
40 meta = with stdenv.lib; {
41 homepage = http://doc.devpi.net;
42 description = "Client for devpi, a pypi index server and packaging meta tool";
43 license = licenses.mit;
44 maintainers = with maintainers; [ lewo makefu ];
45 };
46
47}