1 { lib, fetchFromGitHub, buildPythonApplication
31 buildPythonApplication rec {
32 pname = "devpi-server";
36 disabled = pythonOlder "3.7";
38 src = fetchFromGitHub {
41 rev = "server-${version}";
42 hash = "sha256-j8iILbptUw8DUE9lFpjDp/VYzdJzmOYqM/RCnkpWdcA=";
45 sourceRoot = "${src.name}/server";
48 substituteInPlace tox.ini \
49 --replace "--flake8" ""
56 propagatedBuildInputs = [
74 ] ++ passlib.optional-dependencies.argon2;
84 # root_passwd_hash tries to write to store
85 # TestMirrorIndexThings tries to write to /var through ngnix
86 # nginx tests try to write to /var
88 export PATH=$PATH:$out/bin
94 "--ignore=test_devpi_server/test_nginx_replica.py"
95 "--ignore=test_devpi_server/test_streaming_nginx.py"
96 "--ignore=test_devpi_server/test_streaming_replica_nginx.py"
99 "root_passwd_hash_option"
100 "TestMirrorIndexThings"
101 "test_auth_mirror_url_no_hash"
102 "test_auth_mirror_url_with_hash"
103 "test_auth_mirror_url_hidden_in_logs"
104 "test_simplelinks_timeout"
107 __darwinAllowLocalNetworking = true;
109 pythonImportsCheck = [
114 devpi-server = nixosTests.devpi-server;
115 version = testers.testVersion {
116 package = devpi-server;
120 # devpi uses a monorepo for server,common,client and web
121 passthru.updateScript = gitUpdater {
122 rev-prefix = "server-";
126 homepage = "http://doc.devpi.net";
127 description = "Github-style pypi index server and packaging meta tool";
128 changelog = "https://github.com/devpi/devpi/blob/${src.rev}/server/CHANGELOG";
129 license = licenses.mit;
130 maintainers = with maintainers; [ makefu ];