1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, azure-core
6, msrest
7, msrestazure
8, isodate
9}:
10
11buildPythonPackage rec {
12 pname = "azure-containerregistry";
13 version = "1.1.0";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchPypi {
19 inherit pname version;
20 hash = "sha256-6IU+fzMIL8HJv4rCrWlcJSuYre6cdBa7BjS9KrIbIRU=";
21 extension = "zip";
22 };
23
24 propagatedBuildInputs = [
25 azure-core
26 msrest
27 msrestazure
28 isodate
29 ];
30
31 # tests require azure-devtools which are not published (since 2020)
32 # https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/containerregistry/azure-containerregistry/dev_requirements.txt
33 doCheck = false;
34
35 pythonImportsCheck = [
36 "azure.core"
37 "azure.containerregistry"
38 ];
39
40 meta = with lib; {
41 description = "Microsoft Azure Container Registry client library for Python";
42 homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/containerregistry/azure-containerregistry";
43 license = licenses.mit;
44 maintainers = with maintainers; [ peterromfeldhk ];
45 };
46}