2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
aiodns,
|
|
|
|
aiohttp,
|
|
|
|
azure-core,
|
|
|
|
buildPythonPackage,
|
|
|
|
certifi,
|
|
|
|
fetchFromGitHub,
|
|
|
|
httpretty,
|
|
|
|
isodate,
|
|
|
|
pytest-aiohttp,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonAtLeast,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
requests-oauthlib,
|
|
|
|
setuptools,
|
|
|
|
trio,
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "msrest";
|
2022-10-06 18:32:54 +00:00
|
|
|
version = "0.7.1";
|
2024-02-29 20:09:43 +00:00
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Azure";
|
|
|
|
repo = "msrest-for-python";
|
2022-10-06 18:32:54 +00:00
|
|
|
# no tag for 0.7.1
|
|
|
|
rev = "2d8fd04f68a124d0f3df7b81584accc3270b1afc";
|
|
|
|
hash = "sha256-1EXXXflhDeU+erdI+NsWxSX76ooDTl3+MyQwRzm2xV0=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2024-02-29 20:09:43 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [
|
2022-10-06 18:32:54 +00:00
|
|
|
azure-core
|
2022-04-27 09:35:20 +00:00
|
|
|
aiodns
|
|
|
|
aiohttp
|
|
|
|
certifi
|
|
|
|
isodate
|
|
|
|
requests
|
|
|
|
requests-oauthlib
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-04-27 09:35:20 +00:00
|
|
|
httpretty
|
|
|
|
pytest-aiohttp
|
|
|
|
pytestCheckHook
|
|
|
|
trio
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
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"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "msrest" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2022-04-27 09:35:20 +00:00
|
|
|
description = "The runtime library for AutoRest generated Python clients";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/Azure/msrest-for-python";
|
|
|
|
license = licenses.mit;
|
2024-06-05 15:53:02 +00:00
|
|
|
maintainers = with maintainers; [
|
|
|
|
bendlas
|
|
|
|
jonringer
|
|
|
|
maxwilson
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|