summary refs log tree commit diff
path: root/pkgs/development/python-modules/azure-containerregistry/default.nix
blob: bc1aaf5f8bd1b69a61f31f94ac1883b755bc8201 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{ lib, buildPythonPackage, fetchPypi, pythonOlder
, azure-core
, msrest
, msrestazure
}:

buildPythonPackage rec {
  pname = "azure-containerregistry";
  version = "1.0.0";
  disabled = pythonOlder "3.6";

  src = fetchPypi {
    inherit pname version;
    sha256 = "sha256-DIZCHZM5aeKtmJrgwAk5J26ltaxNxKUn3rR+FbmuyZc=";
    extension = "zip";
  };

  propagatedBuildInputs = [ azure-core msrest msrestazure ];

  # tests require azure-devtools which are not published (since 2020)
  # https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/containerregistry/azure-containerregistry/dev_requirements.txt
  doCheck = false;

  pythonImportsCheck = [ "azure.core" "azure.containerregistry" ];

  meta = with lib; {
    description = "Microsoft Azure Container Registry client library for Python";
    homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/containerregistry/azure-containerregistry";
    license = licenses.mit;
    maintainers = with maintainers; [ peterromfeldhk ];
  };
}