nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
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 = "4.1.0";
13
14 src = pythonPackages.fetchPypi {
15 inherit pname version;
16 sha256 = "0f5jkvxx9fl8v5vwbwmplqhjsdfgiib7j3zvn0zxd8krvi2s38fq";
17 };
18
19 checkInputs = with pythonPackages; [
20 pytest pytest-flakes webtest mock
21 devpi-server tox
22 sphinx wheel git mercurial detox
23 setuptools
24 ];
25 checkPhase = ''
26 export PATH=$PATH:$out/bin
27 export HOME=$TMPDIR # fix tests failing in sandbox due to "/homeless-shelter"
28
29 # setuptools do not get propagated into the tox call (cannot import setuptools)
30 rm testing/test_test.py
31
32 # test_pypi_index_attributes tries to connect to upstream pypi
33 py.test -k 'not test_pypi_index_attributes' 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}