1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 azure-core,
7 cryptography,
8 msal,
9 msal-extensions,
10 typing-extensions,
11 setuptools,
12}:
13
14buildPythonPackage rec {
15 pname = "azure-identity";
16 version = "1.23.1";
17 pyproject = true;
18
19 disabled = pythonOlder "3.8";
20
21 src = fetchPypi {
22 pname = "azure_identity";
23 inherit version;
24 hash = "sha256-Imwe+YKp+NXc9uD57TXq7ypNlx592GMX6bnVLnCgNeQ=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 azure-core
31 cryptography
32 msal
33 msal-extensions
34 typing-extensions
35 ];
36
37 pythonImportsCheck = [ "azure.identity" ];
38
39 # Requires checkout from mono-repo and a mock account:
40 # https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/tests.yml
41 doCheck = false;
42
43 meta = with lib; {
44 description = "Microsoft Azure Identity Library for Python";
45 homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/identity/azure-identity";
46 changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-identity_${version}/sdk/identity/azure-identity/CHANGELOG.md";
47 license = licenses.mit;
48 maintainers = with maintainers; [ kamadorueda ];
49 };
50}