nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, python3Packages, nginx }:
2
3python3Packages.buildPythonApplication rec {
4 pname = "devpi-server";
5 version = "5.2.0";
6
7 src = python3Packages.fetchPypi {
8 inherit pname version;
9 sha256 = "1dapd0bis7pb4fzq5yva7spby5amcsgl1970z5nq1rlprf6qbydg";
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 # root_passwd_hash tries to write to store
37 checkPhase = ''
38 PATH=$PATH:$out/bin HOME=$TMPDIR pytest \
39 ./test_devpi_server --slow -rfsxX \
40 -k 'not root_passwd_hash_option'
41 '';
42
43 meta = with stdenv.lib;{
44 homepage = http://doc.devpi.net;
45 description = "Github-style pypi index server and packaging meta tool";
46 license = licenses.mit;
47 maintainers = with maintainers; [ makefu ];
48 };
49}