diff options
author | Alyssa Ross <hi@alyssa.is> | 2023-08-26 09:19:25 +0000 |
---|---|---|
committer | Alyssa Ross <hi@alyssa.is> | 2023-08-26 09:19:25 +0000 |
commit | 55abc327b49b4097e48c916e40803caa8cf46e8f (patch) | |
tree | 1c0420ab3fb21d9485460b912f1c3eae18781871 /nixpkgs/pkgs/development/python-modules/pypiserver | |
parent | 7936cf821dccc1eaade44b852db09d03fae8e5f3 (diff) | |
parent | 18324978d632ffc55ef1d928e81630c620f4f447 (diff) | |
download | nixlib-55abc327b49b4097e48c916e40803caa8cf46e8f.tar nixlib-55abc327b49b4097e48c916e40803caa8cf46e8f.tar.gz nixlib-55abc327b49b4097e48c916e40803caa8cf46e8f.tar.bz2 nixlib-55abc327b49b4097e48c916e40803caa8cf46e8f.tar.lz nixlib-55abc327b49b4097e48c916e40803caa8cf46e8f.tar.xz nixlib-55abc327b49b4097e48c916e40803caa8cf46e8f.tar.zst nixlib-55abc327b49b4097e48c916e40803caa8cf46e8f.zip |
Merge branch 'nixos-unstable' of https://github.com/NixOS/nixpkgs
Conflicts: nixpkgs/pkgs/build-support/go/module.nix
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/pypiserver')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/pypiserver/default.nix | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/pypiserver/default.nix b/nixpkgs/pkgs/development/python-modules/pypiserver/default.nix index e892a8227c3d..6e948d7bb293 100644 --- a/nixpkgs/pkgs/development/python-modules/pypiserver/default.nix +++ b/nixpkgs/pkgs/development/python-modules/pypiserver/default.nix @@ -2,6 +2,7 @@ , buildPythonPackage , fetchFromGitHub , passlib +, pip , pytestCheckHook , pythonOlder , setuptools @@ -9,6 +10,7 @@ , twine , watchdog , webtest +, wheel }: buildPythonPackage rec { @@ -26,11 +28,13 @@ buildPythonPackage rec { }; nativeBuildInputs = [ + setuptools setuptools-git + wheel ]; propagatedBuildInputs = [ - setuptools + pip ]; passthru.optional-dependencies = { @@ -42,12 +46,21 @@ buildPythonPackage rec { ]; }; + __darwinAllowLocalNetworking = true; + + # Tests need these permissions in order to use the FSEvents API on macOS. + sandboxProfile = '' + (allow mach-lookup (global-name "com.apple.FSEvents")) + ''; + preCheck = '' export HOME=$TMPDIR ''; nativeCheckInputs = [ + pip pytestCheckHook + setuptools twine webtest ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); @@ -57,11 +70,6 @@ buildPythonPackage rec { "test_hash_algos" "test_pip_install_authed_succeeds" "test_pip_install_open_succeeds" - "test_pip_install_authed_fails" - # Tests want to tests upload - "upload" - "register" - "test_partial_authed_open_download" ]; disabledTestPaths = [ |