about summary refs log tree commit diff
path: root/pkgs/development/python-modules/msrestazure/default.nix
blob: 9a18be120a602316259bc5d4b4ee9930d74ba532 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
{
  lib,
  adal,
  buildPythonPackage,
  fetchFromGitHub,
  httpretty,
  mock,
  msrest,
  pytest-asyncio,
  pytestCheckHook,
  pythonOlder,
  setuptools,
}:

buildPythonPackage rec {
  pname = "msrestazure";
  version = "0.6.4";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "Azure";
    repo = "msrestazure-for-python";
    rev = "refs/tags/v${version}";
    hash = "sha256-ZZVZi0v1ucD2g5FpLaNhfNBf6Ab10fUEcEdkY4ELaEY=";
  };

  nativeBuildInputs = [ setuptools ];

  propagatedBuildInputs = [
    adal
    msrest
  ];

  nativeCheckInputs = [
    httpretty
    mock
    pytest-asyncio
    pytestCheckHook
  ];

  pythonImportsCheck = [ "msrest" ];

  meta = with lib; {
    description = "Runtime library 'msrestazure' for AutoRest generated Python clients";
    homepage = "https://azure.microsoft.com/en-us/develop/python/";
    license = licenses.mit;
    maintainers = with maintainers; [
      bendlas
    ];
  };
}