lol

Merge pull request #250679 from tjni/pypiserver

python3.pkgs.pypiserver: add pip dependency and audit tests

authored by

Theodore Ni and committed by
GitHub
076493f2 50eeaccb

+14 -6
+14 -6
pkgs/development/python-modules/pypiserver/default.nix
··· 2 2 , buildPythonPackage 3 3 , fetchFromGitHub 4 4 , passlib 5 + , pip 5 6 , pytestCheckHook 6 7 , pythonOlder 7 8 , setuptools ··· 9 10 , twine 10 11 , watchdog 11 12 , webtest 13 + , wheel 12 14 }: 13 15 14 16 buildPythonPackage rec { ··· 26 28 }; 27 29 28 30 nativeBuildInputs = [ 31 + setuptools 29 32 setuptools-git 33 + wheel 30 34 ]; 31 35 32 36 propagatedBuildInputs = [ 33 - setuptools 37 + pip 34 38 ]; 35 39 36 40 passthru.optional-dependencies = { ··· 42 46 ]; 43 47 }; 44 48 49 + __darwinAllowLocalNetworking = true; 50 + 51 + # Tests need these permissions in order to use the FSEvents API on macOS. 52 + sandboxProfile = '' 53 + (allow mach-lookup (global-name "com.apple.FSEvents")) 54 + ''; 55 + 45 56 preCheck = '' 46 57 export HOME=$TMPDIR 47 58 ''; 48 59 49 60 nativeCheckInputs = [ 61 + pip 50 62 pytestCheckHook 63 + setuptools 51 64 twine 52 65 webtest 53 66 ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies); ··· 57 70 "test_hash_algos" 58 71 "test_pip_install_authed_succeeds" 59 72 "test_pip_install_open_succeeds" 60 - "test_pip_install_authed_fails" 61 - # Tests want to tests upload 62 - "upload" 63 - "register" 64 - "test_partial_authed_open_download" 65 73 ]; 66 74 67 75 disabledTestPaths = [