1{ buildPythonPackage
2, fetchPypi
3, isPy38
4, lib
5
6# pythonPackages
7, azure-common
8, azure-core
9, azure-nspkg
10, cryptography
11, mock
12, msal
13, msal-extensions
14, msrest
15, msrestazure
16}:
17
18buildPythonPackage rec {
19 pname = "azure-identity";
20 version = "1.4.0";
21 disabled = isPy38;
22
23 src = fetchPypi {
24 inherit pname version;
25 extension = "zip";
26 sha256 = "820e1f3e21f90d36063239c6cb7ca9a6bb644cb120a6b1ead3081cafdf6ceaf8";
27 };
28
29 propagatedBuildInputs = [
30 azure-common
31 azure-core
32 azure-nspkg
33 cryptography
34 mock
35 msal
36 msal-extensions
37 msrest
38 msrestazure
39 ];
40
41 prePatch = ''
42 substituteInPlace setup.py \
43 --replace msal-extensions~=0.1.3 msal-extensions
44 '';
45
46 pythonImportsCheck = [ "azure.identity" ];
47
48 # Requires checkout from mono-repo and a mock account:
49 # https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/tests.yml
50 doCheck = false;
51
52 meta = with lib; {
53 description = "Microsoft Azure Identity Library for Python";
54 homepage = "https://github.com/Azure/azure-sdk-for-python";
55 license = licenses.mit;
56 maintainers = with maintainers; [
57 kamadorueda
58 ];
59 };
60}