20 buildPythonPackage rec {
25 disabled = pythonOlder "3.7";
27 src = fetchFromGitHub {
30 rev = "refs/tags/v${version}";
31 hash = "sha256-5GJthS3kWOyWvYW+mYnIcNKD3fgSVexABZ+DpVh7qkE=";
43 ] ++ lib.optionals (pythonOlder "3.12") [ importlib-resources ];
45 optional-dependencies = {
46 passlib = [ passlib ];
57 ] ++ lib.flatten (builtins.attrValues optional-dependencies);
59 __darwinAllowLocalNetworking = true;
61 # Tests need these permissions in order to use the FSEvents API on macOS.
63 (allow mach-lookup (global-name "com.apple.FSEvents"))
71 # Fails to install the package
73 "test_pip_install_authed_succeeds"
74 "test_pip_install_open_succeeds"
78 # Test requires docker service running
79 "docker/test_docker.py"
82 pythonImportsCheck = [ "pypiserver" ];
85 description = "Minimal PyPI server for use with pip/easy_install";
86 homepage = "https://github.com/pypiserver/pypiserver";
87 changelog = "https://github.com/pypiserver/pypiserver/releases/tag/v${version}";
88 license = with licenses; [
92 maintainers = with maintainers; [ austinbutler ];
93 mainProgram = "pypi-server";