1{ lib
2, aiodns
3, aiohttp
4, azure-core
5, buildPythonPackage
6, certifi
7, fetchFromGitHub
8, httpretty
9, isodate
10, pytest-aiohttp
11, pytestCheckHook
12, pythonOlder
13, requests
14, requests-oauthlib
15, trio
16}:
17
18buildPythonPackage rec {
19 pname = "msrest";
20 version = "0.7.1";
21 format = "setuptools";
22
23 disabled = pythonOlder "3.7";
24
25 src = fetchFromGitHub {
26 owner = "Azure";
27 repo = "msrest-for-python";
28 # no tag for 0.7.1
29 rev = "2d8fd04f68a124d0f3df7b81584accc3270b1afc";
30 hash = "sha256-1EXXXflhDeU+erdI+NsWxSX76ooDTl3+MyQwRzm2xV0=";
31 };
32
33 propagatedBuildInputs = [
34 azure-core
35 aiodns
36 aiohttp
37 certifi
38 isodate
39 requests
40 requests-oauthlib
41 ];
42
43 nativeCheckInputs = [
44 httpretty
45 pytest-aiohttp
46 pytestCheckHook
47 trio
48 ];
49
50 disabledTests = [
51 # Test require network access
52 "test_basic_aiohttp"
53 "test_basic_aiohttp"
54 "test_basic_async_requests"
55 "test_basic_async_requests"
56 "test_conf_async_requests"
57 "test_conf_async_requests"
58 "test_conf_async_trio_requests"
59 ];
60
61 pythonImportsCheck = [
62 "msrest"
63 ];
64
65 meta = with lib; {
66 description = "The runtime library for AutoRest generated Python clients";
67 homepage = "https://github.com/Azure/msrest-for-python";
68 license = licenses.mit;
69 maintainers = with maintainers; [ bendlas jonringer maxwilson ];
70 };
71}