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