Merge pull request #267391 from fabaff/duo-client-fix

python311Packages.duo-client: disable failing tests

authored by

OTABI Tomoya and committed by
GitHub
d46a75dc a51c8f11

+16 -3
+16 -3
pkgs/development/python-modules/duo-client/default.nix
··· 3 3 , fetchFromGitHub 4 4 , freezegun 5 5 , mock 6 - , nose2 6 + , pytestCheckHook 7 + , pythonOlder 7 8 , pytz 8 9 , setuptools 9 10 , six ··· 12 13 buildPythonPackage rec { 13 14 pname = "duo-client"; 14 15 version = "5.0.1"; 16 + pyproject = true; 17 + 18 + disabled = pythonOlder "3.7"; 15 19 16 20 src = fetchFromGitHub { 17 21 owner = "duosecurity"; ··· 25 29 --replace "dlint" "" \ 26 30 --replace "flake8" "" 27 31 ''; 32 + 33 + nativeBuildInputs = [ 34 + setuptools 35 + ]; 28 36 29 37 propagatedBuildInputs = [ 30 - setuptools 31 38 six 32 39 ]; 33 40 34 41 nativeCheckInputs = [ 35 42 freezegun 36 43 mock 37 - nose2 44 + pytestCheckHook 38 45 pytz 39 46 ]; 40 47 41 48 pythonImportsCheck = [ 42 49 "duo_client" 50 + ]; 51 + 52 + disabledTests = [ 53 + # Tests require network access 54 + "test_server_hostname" 55 + "test_server_hostname_with_port" 43 56 ]; 44 57 45 58 meta = with lib; {