Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 46 lines 1.3 kB view raw
1{ stdenv 2, pythonPackages 3, glibcLocales 4, devpi-server 5, git 6, mercurial 7} : 8 9pythonPackages.buildPythonApplication rec { 10 pname = "devpi-client"; 11 version = "4.1.0"; 12 13 src = pythonPackages.fetchPypi { 14 inherit pname version; 15 sha256 = "0f5jkvxx9fl8v5vwbwmplqhjsdfgiib7j3zvn0zxd8krvi2s38fq"; 16 }; 17 18 checkInputs = with pythonPackages; [ 19 pytest pytest-flakes webtest mock 20 devpi-server tox 21 sphinx wheel git mercurial detox 22 setuptools 23 ]; 24 checkPhase = '' 25 export PATH=$PATH:$out/bin 26 export HOME=$TMPDIR # fix tests failing in sandbox due to "/homeless-shelter" 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 py.test -k 'not test_pypi_index_attributes' testing 33 ''; 34 35 LC_ALL = "en_US.UTF-8"; 36 buildInputs = with pythonPackages; [ glibcLocales pkginfo check-manifest ]; 37 propagatedBuildInputs = with pythonPackages; [ py devpi-common pluggy setuptools ]; 38 39 meta = with stdenv.lib; { 40 homepage = http://doc.devpi.net; 41 description = "Client for devpi, a pypi index server and packaging meta tool"; 42 license = licenses.mit; 43 maintainers = with maintainers; [ lewo makefu ]; 44 }; 45 46}