Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 48 lines 1.4 kB view raw
1{ stdenv 2, lib 3, pythonPackages 4, glibcLocales 5, devpi-server 6, git 7, mercurial 8} : 9 10pythonPackages.buildPythonApplication rec { 11 name = "${pname}-${version}"; 12 pname = "devpi-client"; 13 version = "3.1.0"; 14 15 src = pythonPackages.fetchPypi { 16 inherit pname version; 17 sha256 = "0w47x3lkafcg9ijlaxllmq4886nsc91w49ck1cd7vn2gafkwjkgr"; 18 }; 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_pypi_index_attributes tries to connect to upstream pypi 33 # test_download_release_error is fixed in the next release 34 py.test -k 'not test_pypi_index_attributes and not test_download_release_error' testing 35 ''; 36 37 LC_ALL = "en_US.UTF-8"; 38 buildInputs = with pythonPackages; [ glibcLocales pkginfo check-manifest ]; 39 propagatedBuildInputs = with pythonPackages; [ py devpi-common pluggy setuptools ]; 40 41 meta = with stdenv.lib; { 42 homepage = http://doc.devpi.net; 43 description = "Client for devpi, a pypi index server and packaging meta tool"; 44 license = licenses.mit; 45 maintainers = with maintainers; [ lewo makefu ]; 46 }; 47 48}