1{
2 lib,
3 adal,
4 buildPythonPackage,
5 fetchFromGitHub,
6 httpretty,
7 mock,
8 msrest,
9 pytest-asyncio,
10 pytestCheckHook,
11 pythonOlder,
12 setuptools,
13}:
14
15buildPythonPackage rec {
16 pname = "msrestazure";
17 version = "0.6.4";
18 pyproject = true;
19
20 disabled = pythonOlder "3.7";
21
22 src = fetchFromGitHub {
23 owner = "Azure";
24 repo = "msrestazure-for-python";
25 tag = "v${version}";
26 hash = "sha256-ZZVZi0v1ucD2g5FpLaNhfNBf6Ab10fUEcEdkY4ELaEY=";
27 };
28
29 nativeBuildInputs = [ setuptools ];
30
31 propagatedBuildInputs = [
32 adal
33 msrest
34 ];
35
36 nativeCheckInputs = [
37 httpretty
38 mock
39 pytest-asyncio
40 pytestCheckHook
41 ];
42
43 pythonImportsCheck = [ "msrest" ];
44
45 meta = with lib; {
46 description = "Runtime library 'msrestazure' for AutoRest generated Python clients";
47 homepage = "https://azure.microsoft.com/en-us/develop/python/";
48 license = licenses.mit;
49 maintainers = with maintainers; [
50 bendlas
51 ];
52 };
53}