nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 21.11 67 lines 1.3 kB view raw
1{ lib 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.2.2"; 29 30 src = fetchPypi { 31 inherit pname version; 32 sha256 = "24ac6d94108996efad4ff5185dabb1e5120ae238134b8175d6de2ca9e766cd92"; 33 }; 34 35 postPatch = '' 36 # can be removed after 5.2.2, updated upstream 37 substituteInPlace setup.py \ 38 --replace "pluggy>=0.6.0,<1.0" "pluggy" 39 ''; 40 41 buildInputs = [ glibcLocales ]; 42 43 propagatedBuildInputs = [ py devpi-common pluggy setuptools check-manifest pkginfo ]; 44 45 checkInputs = [ 46 pytest pytest-flake8 webtest mock 47 devpi-server tox 48 sphinx wheel git mercurial 49 ]; 50 51 # --fast skips tests which try to start a devpi-server improperly 52 checkPhase = '' 53 HOME=$TMPDIR py.test --fast 54 ''; 55 56 LC_ALL = "en_US.UTF-8"; 57 58 __darwinAllowLocalNetworking = true; 59 60 meta = with lib; { 61 homepage = "http://doc.devpi.net"; 62 description = "Client for devpi, a pypi index server and packaging meta tool"; 63 license = licenses.mit; 64 maintainers = with maintainers; [ lewo makefu ]; 65 }; 66 67}