nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 20.03 71 lines 1.7 kB view raw
1{ stdenv 2, buildPythonApplication 3, fetchPypi 4# buildInputs 5, glibcLocales 6, pkginfo 7, check-manifest 8# propagatedBuildInputs 9, py 10, devpi-common 11, pluggy 12, setuptools 13# CheckInputs 14, pytest 15, pytest-flake8 16, webtest 17, mock 18, devpi-server 19, tox 20, sphinx 21, wheel 22, git 23, mercurial 24} : 25 26buildPythonApplication rec { 27 pname = "devpi-client"; 28 version = "5.0.0"; 29 30 src = fetchPypi { 31 inherit pname version; 32 sha256 = "0hyj3xc5c6658slk5wgcr9rh7hwi5r3hzxk1p6by61sqx5r38v3q"; 33 }; 34 35 buildInputs = [ glibcLocales pkginfo check-manifest ]; 36 37 propagatedBuildInputs = [ py devpi-common pluggy setuptools ]; 38 39 checkInputs = [ 40 pytest pytest-flake8 webtest mock 41 devpi-server tox 42 sphinx wheel git mercurial 43 ]; 44 45 checkPhase = '' 46 export PATH=$PATH:$out/bin 47 export HOME=$TMPDIR # fix tests failing in sandbox due to "/homeless-shelter" 48 49 # test_pypi_index_attributes: tries to connect to upstream pypi 50 # test_test: setuptools does not get propagated into the tox call (cannot import setuptools), also no detox 51 # test_index: hangs forever 52 # test_upload: fails multiple times with 53 # > assert args[0], args 54 # F AssertionError: [None, local('/build/pytest-of-nixbld/pytest-0/test_export_attributes_git_set0/repo2/setupdir/setup.py'), '--name'] 55 56 py.test -k 'not test_pypi_index_attributes \ 57 and not test_test \ 58 and not test_index \ 59 and not test_upload' testing 60 ''; 61 62 LC_ALL = "en_US.UTF-8"; 63 64 meta = with stdenv.lib; { 65 homepage = http://doc.devpi.net; 66 description = "Client for devpi, a pypi index server and packaging meta tool"; 67 license = licenses.mit; 68 maintainers = with maintainers; [ lewo makefu ]; 69 }; 70 71}