diff options
author | Nick Cao <nickcao@nichi.co> | 2023-11-13 08:33:39 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-11-13 08:33:39 -0500 |
commit | 67296a9cacbb76f5248d78fcfbb4f1ad415d2a77 (patch) | |
tree | eee3c0164035959af7cb7d2f0ff47bf072c0aa46 /pkgs/development | |
parent | 565d973451609ae6fb02ff0841924762cad7c251 (diff) | |
parent | 91de96e0986e78799418ad6c24a2d02ee66483ff (diff) |
Merge pull request #267193 from fabaff/pytenable-fix
python311Packages.pytenable: disable tests which requires network access
Diffstat (limited to 'pkgs/development')
-rw-r--r-- | pkgs/development/python-modules/pytenable/default.nix | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/pkgs/development/python-modules/pytenable/default.nix b/pkgs/development/python-modules/pytenable/default.nix index 847fcd4355253..8fe421cd9328f 100644 --- a/pkgs/development/python-modules/pytenable/default.nix +++ b/pkgs/development/python-modules/pytenable/default.nix @@ -14,13 +14,14 @@ , responses , restfly , semver +, setuptools , typing-extensions }: buildPythonPackage rec { pname = "pytenable"; version = "1.4.13"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; @@ -31,6 +32,10 @@ buildPythonPackage rec { hash = "sha256-UY3AFnPplmU0jrV4LIKH4+2tcJEFkKMqO2GWVkgaHYE="; }; + nativeBuildInputs = [ + setuptools + ]; + propagatedBuildInputs = [ defusedxml marshmallow @@ -50,12 +55,20 @@ buildPythonPackage rec { responses ]; + disabledTestPaths = [ + # Disable tests that requires network access + "tests/io/" + ]; + disabledTests = [ # Disable tests that requires a Docker container "test_uploads_docker_push_name_typeerror" "test_uploads_docker_push_tag_typeerror" "test_uploads_docker_push_cs_name_typeerror" "test_uploads_docker_push_cs_tag_typeerror" + # Test requires network access + "test_assets_list_vcr" + "test_events_list_vcr" ]; pythonImportsCheck = [ |