Merge pull request #290902 from fabaff/azure-keyvault-certificates-bump

python311Packages.azure-core: 1.28.0 -> 1.30.0, python311Packages.azure-keyvault-certificates: 4.7.0 -> 4.8.0
This commit is contained in:
Fabian Affolter 2024-02-29 09:12:15 +01:00 committed by GitHub
commit 74ae9ec087
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 106 additions and 66 deletions

View File

@ -12,15 +12,16 @@
, pytest-trio
, pytestCheckHook
, requests
, setuptools
, six
, trio
, typing-extensions
}:
buildPythonPackage rec {
version = "1.28.0";
version = "1.30.0";
pname = "azure-core";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
@ -28,10 +29,13 @@ buildPythonPackage rec {
src = fetchPypi {
inherit pname version;
extension = "zip";
hash = "sha256-6e78Zvwf3lbatvBNTl0SxgdU1an6Sb3P2FNPyW7ZNr0=";
hash = "sha256-bzp4g+8YRyL2vZlyYu3a+Az+fls+DKqvjbFpVpWJPTU=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
requests
six
@ -99,8 +103,8 @@ buildPythonPackage rec {
meta = with lib; {
description = "Microsoft Azure Core Library for Python";
homepage = "https://github.com/Azure/azure-sdk-for-python";
changelog = "https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/core/azure-core/CHANGELOG.md";
homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/core/azure-core";
changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-core_${version}/sdk/core/azure-core/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};

View File

@ -1,34 +1,36 @@
{ lib
, azure-core
, buildPythonPackage
, fetchPypi
, isodate
, pythonOlder
, azure-common
, azure-core
, msrest
, six
, setuptools
, typing-extensions
}:
buildPythonPackage rec {
pname = "azure-keyvault-administration";
version = "4.3.0";
format = "setuptools";
version = "4.4.0";
pyproject = true;
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
extension = "zip";
hash = "sha256-PuKjui0OP0ODNErjbjJ90hOgee97JDrVT2sh+MufxWY=";
hash = "sha256-ems2y59UTzV1D/L6lMg7l7PvIMH+G0JOpoAY7ucD8d8=";
};
propagatedBuildInputs = [
azure-common
azure-core
msrest
six
nativeBuildInputs = [
setuptools
];
# no tests in pypi tarball
propagatedBuildInputs = [
azure-core
typing-extensions
isodate
];
# Tests require checkout from mono-repo
doCheck = false;
pythonNamespaces = [
@ -42,6 +44,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Microsoft Azure Key Vault Administration Client Library for Python";
homepage = "https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/keyvault/azure-keyvault-administration";
changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-keyvault-administration_${version}/sdk/keyvault/azure-keyvault-administration/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};

View File

@ -3,36 +3,40 @@
, fetchPypi
, azure-common
, azure-core
, msrest
, msrestazure
, isodate
, pythonOlder
, setuptools
, typing-extensions
}:
buildPythonPackage rec {
pname = "azure-keyvault-certificates";
version = "4.7.0";
format = "setuptools";
version = "4.8.0";
pyproject = true;
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
extension = "zip";
hash = "sha256-nkfZp0gl5QKxPVSByZwYIEDE9Ucj9DNx4AhZQ23888o=";
hash = "sha256-xWEnPkQCwlEUhzSGyYv6GyxHiGIp1BAOh9rxAO4Edyg=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
azure-common
azure-core
msrest
msrestazure
isodate
typing-extensions
];
pythonNamespaces = [
"azure.keyvault"
];
# has no tests
# Module has no tests
doCheck = false;
pythonImportsCheck = [
@ -41,7 +45,8 @@ buildPythonPackage rec {
meta = with lib; {
description = "Microsoft Azure Key Vault Certificates Client Library for Python";
homepage = "https://github.com/Azure/azure-sdk-for-python";
homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-certificates";
changelog = "https://github.com/Azure/azure-sdk-for-python/blob/azure-keyvault-certificates_${version}/sdk/keyvault/azure-keyvault-certificates/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};

View File

@ -1,41 +1,46 @@
{ lib
, azure-core
, buildPythonPackage
, fetchPypi
, isodate
, pythonOlder
, azure-common
, azure-core
, msrest
, setuptools
, typing-extensions
}:
buildPythonPackage rec {
pname = "azure-keyvault-secrets";
version = "4.7.0";
format = "setuptools";
version = "4.8.0";
pyproject = true;
disabled = pythonOlder "3.6";
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
extension = "zip";
hash = "sha256-d+4lNLplGh8wbIXXtQW8PM7o/qd0UOuvr8Jq7BblRF0=";
hash = "sha256-VjbAodiiDjxXmcs8z/1Ovz8NGst8rpUmhhgzr4sP6BQ=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
azure-common
azure-core
msrest
isodate
typing-extensions
];
pythonNamespaces = [
"azure.keyvault"
];
# requires checkout from mono-repo
# Tests require checkout from mono-repo
doCheck = false;
meta = with lib; {
description = "Microsoft Azure Key Vault Secrets Client Library for Python";
homepage = "https://github.com/Azure/azure-sdk-for-python";
homepage = "https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/keyvault/azure-keyvault-secrets";
changelog = "https://github.com/Azure/azure-sdk-for-python/tree/azure-keyvault-secrets_${version}/sdk/keyvault/azure-keyvault-secrets";
license = licenses.mit;
maintainers = with maintainers; [ jonringer ];
};

View File

@ -9,16 +9,18 @@
, isodate
, pytest-aiohttp
, pytestCheckHook
, pythonAtLeast
, pythonOlder
, requests
, requests-oauthlib
, setuptools
, trio
}:
buildPythonPackage rec {
pname = "msrest";
version = "0.7.1";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
@ -30,6 +32,10 @@ buildPythonPackage rec {
hash = "sha256-1EXXXflhDeU+erdI+NsWxSX76ooDTl3+MyQwRzm2xV0=";
};
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
azure-core
aiodns
@ -56,6 +62,12 @@ buildPythonPackage rec {
"test_conf_async_requests"
"test_conf_async_requests"
"test_conf_async_trio_requests"
] ++ lib.optionals (pythonAtLeast "3.12") [
# AttributeError: 'TestAuthentication' object has no attribute...
"test_apikey_auth"
"test_cs_auth"
"test_eventgrid_auth"
"test_eventgrid_domain_auth"
];
pythonImportsCheck = [

View File

@ -1,41 +1,52 @@
{ pkgs
, lib
{ lib
, adal
, buildPythonPackage
, fetchFromGitHub
, isPy3k
, adal
, msrest
, mock
, httpretty
, pytest
, mock
, msrest
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
version = "0.6.4";
format = "setuptools";
pname = "msrestazure";
version = "0.6.4";
pyproject = true;
disabled = pythonOlder "3.7";
# Pypi tarball doesnt include tests
# see https://github.com/Azure/msrestazure-for-python/pull/133
src = fetchFromGitHub {
owner = "Azure";
repo = "msrestazure-for-python";
rev = "v${version}";
sha256 = "0ik81f0n6r27f02gblgm0vl5zl3wc6ijsscihgvc1fgm9f5mk5b5";
rev = "refs/tags/v${version}";
hash = "sha256-ZZVZi0v1ucD2g5FpLaNhfNBf6Ab10fUEcEdkY4ELaEY=";
};
propagatedBuildInputs = [ adal msrest ];
nativeBuildInputs = [
setuptools
];
nativeCheckInputs = [ httpretty mock pytest ]
++ lib.optionals isPy3k [ pytest-asyncio ];
propagatedBuildInputs = [
adal
msrest
];
checkPhase = ''
pytest tests/
'';
nativeCheckInputs = [
httpretty
mock
pytest-asyncio
pytestCheckHook
];
meta = with pkgs.lib; {
description = "The runtime library 'msrestazure' for AutoRest generated Python clients.";
pythonImportsCheck = [
"msrest"
];
meta = with lib; {
description = "The runtime library 'msrestazure' for AutoRest generated Python clients";
homepage = "https://azure.microsoft.com/en-us/develop/python/";
license = licenses.mit;
maintainers = with maintainers; [ bendlas jonringer ];