biglybt: 3.5.0.0 -> 3.6.0.0
[NixPkgs.git] / pkgs / development / tools / devpi-server / default.nix
blob0923182afa4f3d96184890222ef2aff5537cbf03
1 { lib, fetchFromGitHub, buildPythonApplication
2 , pythonOlder
3 , aiohttp
4 , appdirs
5 , beautifulsoup4
6 , defusedxml
7 , devpi-common
8 , execnet
9 , itsdangerous
10 , nginx
11 , packaging
12 , passlib
13 , platformdirs
14 , pluggy
15 , py
16 , httpx
17 , pyramid
18 , pytestCheckHook
19 , repoze-lru
20 , setuptools
21 , strictyaml
22 , waitress
23 , webtest
24 , testers
25 , devpi-server
29 buildPythonApplication rec {
30   pname = "devpi-server";
31   version = "6.10.0";
32   pyproject = true;
34   disabled = pythonOlder "3.7";
36   src = fetchFromGitHub {
37     owner = "devpi";
38     repo = "devpi";
39     rev = "server-${version}";
40     hash = "sha256-JqYWWItdAgtUtiYSqxUd40tT7ON4oHiDA4/3Uhb01b8=";
41   };
43   sourceRoot = "${src.name}/server";
45   postPatch = ''
46     substituteInPlace tox.ini \
47       --replace "--flake8" ""
48   '';
50   nativeBuildInputs = [
51     setuptools
52   ];
54   propagatedBuildInputs = [
55     aiohttp
56     appdirs
57     defusedxml
58     devpi-common
59     execnet
60     itsdangerous
61     packaging
62     passlib
63     platformdirs
64     pluggy
65     pyramid
66     repoze-lru
67     setuptools
68     strictyaml
69     waitress
70     py
71     httpx
72   ] ++ passlib.optional-dependencies.argon2;
74   nativeCheckInputs = [
75     beautifulsoup4
76     nginx
77     py
78     pytestCheckHook
79     webtest
80   ];
82   # root_passwd_hash tries to write to store
83   # TestMirrorIndexThings tries to write to /var through ngnix
84   # nginx tests try to write to /var
85   preCheck = ''
86     export PATH=$PATH:$out/bin
87     export HOME=$TMPDIR
88   '';
89   pytestFlagsArray = [
90     "./test_devpi_server"
91     "-rfsxX"
92     "--ignore=test_devpi_server/test_nginx_replica.py"
93     "--ignore=test_devpi_server/test_streaming_nginx.py"
94     "--ignore=test_devpi_server/test_streaming_replica_nginx.py"
95   ];
96   disabledTests = [
97     "root_passwd_hash_option"
98     "TestMirrorIndexThings"
99     "test_auth_mirror_url_no_hash"
100     "test_auth_mirror_url_with_hash"
101     "test_auth_mirror_url_hidden_in_logs"
102     "test_simplelinks_timeout"
103   ];
105   __darwinAllowLocalNetworking = true;
107   pythonImportsCheck = [
108     "devpi_server"
109   ];
111   passthru.tests.version = testers.testVersion {
112     package = devpi-server;
113   };
115   meta = with lib;{
116     homepage = "http://doc.devpi.net";
117     description = "Github-style pypi index server and packaging meta tool";
118     changelog = "https://github.com/devpi/devpi/blob/${src.rev}/server/CHANGELOG";
119     license = licenses.mit;
120     maintainers = with maintainers; [ makefu ];
121   };