Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 46 lines 1.0 kB view raw
1{ stdenv, python3Packages, nginx }: 2 3python3Packages.buildPythonApplication rec { 4 pname = "devpi-server"; 5 version = "5.1.0"; 6 7 src = python3Packages.fetchPypi { 8 inherit pname version; 9 sha256 = "254fceee846532a5fec4e6bf52a59eb8f236efc657678a542b5200da4bb3abbc"; 10 }; 11 12 propagatedBuildInputs = with python3Packages; [ 13 py 14 appdirs 15 devpi-common 16 execnet 17 itsdangerous 18 repoze_lru 19 passlib 20 pluggy 21 pyramid 22 strictyaml 23 waitress 24 ]; 25 26 checkInputs = with python3Packages; [ 27 beautifulsoup4 28 nginx 29 pytest 30 pytest-flake8 31 pytestpep8 32 webtest 33 ] ++ stdenv.lib.optionals isPy27 [ mock ]; 34 35 # test_genconfig.py needs devpi-server on PATH 36 checkPhase = '' 37 PATH=$PATH:$out/bin pytest ./test_devpi_server --slow -rfsxX 38 ''; 39 40 meta = with stdenv.lib;{ 41 homepage = http://doc.devpi.net; 42 description = "Github-style pypi index server and packaging meta tool"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ makefu ]; 45 }; 46}