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