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