2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
azure-core,
|
|
|
|
msrest,
|
|
|
|
msrestazure,
|
|
|
|
isodate,
|
2022-03-30 09:31:56 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "azure-containerregistry";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.2.0";
|
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-Ss0ygh0IZVPqvV3f7Lsh+5FbXRPvg3XRWvyyyAvclqM=";
|
2022-03-30 09:31:56 +00:00
|
|
|
extension = "zip";
|
|
|
|
};
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
azure-core
|
|
|
|
msrest
|
|
|
|
msrestazure
|
|
|
|
isodate
|
|
|
|
];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
# 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;
|
|
|
|
|
2023-07-15 17:15:38 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"azure.core"
|
|
|
|
"azure.containerregistry"
|
|
|
|
];
|
2022-03-30 09:31:56 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|