diff options
Diffstat (limited to 'pkgs/development/python-modules/msrest/default.nix')
-rw-r--r-- | pkgs/development/python-modules/msrest/default.nix | 84 |
1 files changed, 43 insertions, 41 deletions
diff --git a/pkgs/development/python-modules/msrest/default.nix b/pkgs/development/python-modules/msrest/default.nix index 5f4f9869e304..937d489f6f5e 100644 --- a/pkgs/development/python-modules/msrest/default.nix +++ b/pkgs/development/python-modules/msrest/default.nix @@ -1,20 +1,21 @@ -{ lib -, aiodns -, aiohttp -, azure-core -, buildPythonPackage -, certifi -, fetchFromGitHub -, httpretty -, isodate -, pytest-aiohttp -, pytestCheckHook -, pythonAtLeast -, pythonOlder -, requests -, requests-oauthlib -, setuptools -, trio +{ + lib, + aiodns, + aiohttp, + azure-core, + buildPythonPackage, + certifi, + fetchFromGitHub, + httpretty, + isodate, + pytest-aiohttp, + pytestCheckHook, + pythonAtLeast, + pythonOlder, + requests, + requests-oauthlib, + setuptools, + trio, }: buildPythonPackage rec { @@ -32,9 +33,7 @@ buildPythonPackage rec { hash = "sha256-1EXXXflhDeU+erdI+NsWxSX76ooDTl3+MyQwRzm2xV0="; }; - nativeBuildInputs = [ - setuptools - ]; + nativeBuildInputs = [ setuptools ]; propagatedBuildInputs = [ azure-core @@ -53,31 +52,34 @@ buildPythonPackage rec { trio ]; - disabledTests = [ - # Test require network access - "test_basic_aiohttp" - "test_basic_aiohttp" - "test_basic_async_requests" - "test_basic_async_requests" - "test_conf_async_requests" - "test_conf_async_requests" - "test_conf_async_trio_requests" - ] ++ lib.optionals (pythonAtLeast "3.12") [ - # AttributeError: 'TestAuthentication' object has no attribute... - "test_apikey_auth" - "test_cs_auth" - "test_eventgrid_auth" - "test_eventgrid_domain_auth" - ]; + disabledTests = + [ + # Test require network access + "test_basic_aiohttp" + "test_basic_aiohttp" + "test_basic_async_requests" + "test_basic_async_requests" + "test_conf_async_requests" + "test_conf_async_requests" + "test_conf_async_trio_requests" + ] + ++ lib.optionals (pythonAtLeast "3.12") [ + # AttributeError: 'TestAuthentication' object has no attribute... + "test_apikey_auth" + "test_cs_auth" + "test_eventgrid_auth" + "test_eventgrid_domain_auth" + ]; - pythonImportsCheck = [ - "msrest" - ]; + pythonImportsCheck = [ "msrest" ]; meta = with lib; { - description = "The runtime library for AutoRest generated Python clients"; + description = "Runtime library for AutoRest generated Python clients"; homepage = "https://github.com/Azure/msrest-for-python"; license = licenses.mit; - maintainers = with maintainers; [ bendlas jonringer maxwilson ]; + maintainers = with maintainers; [ + bendlas + maxwilson + ]; }; } |