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

View File

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

View File

@ -3,36 +3,40 @@
, fetchPypi , fetchPypi
, azure-common , azure-common
, azure-core , azure-core
, msrest , isodate
, msrestazure
, pythonOlder , pythonOlder
, setuptools
, typing-extensions
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "azure-keyvault-certificates"; pname = "azure-keyvault-certificates";
version = "4.7.0"; version = "4.8.0";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.6"; disabled = pythonOlder "3.8";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
extension = "zip"; hash = "sha256-xWEnPkQCwlEUhzSGyYv6GyxHiGIp1BAOh9rxAO4Edyg=";
hash = "sha256-nkfZp0gl5QKxPVSByZwYIEDE9Ucj9DNx4AhZQ23888o=";
}; };
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
azure-common azure-common
azure-core azure-core
msrest isodate
msrestazure typing-extensions
]; ];
pythonNamespaces = [ pythonNamespaces = [
"azure.keyvault" "azure.keyvault"
]; ];
# has no tests # Module has no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ pythonImportsCheck = [
@ -41,7 +45,8 @@ buildPythonPackage rec {
meta = with lib; { meta = with lib; {
description = "Microsoft Azure Key Vault Certificates Client Library for Python"; 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; license = licenses.mit;
maintainers = with maintainers; [ jonringer ]; maintainers = with maintainers; [ jonringer ];
}; };

View File

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

View File

@ -9,16 +9,18 @@
, isodate , isodate
, pytest-aiohttp , pytest-aiohttp
, pytestCheckHook , pytestCheckHook
, pythonAtLeast
, pythonOlder , pythonOlder
, requests , requests
, requests-oauthlib , requests-oauthlib
, setuptools
, trio , trio
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "msrest"; pname = "msrest";
version = "0.7.1"; version = "0.7.1";
format = "setuptools"; pyproject = true;
disabled = pythonOlder "3.7"; disabled = pythonOlder "3.7";
@ -30,6 +32,10 @@ buildPythonPackage rec {
hash = "sha256-1EXXXflhDeU+erdI+NsWxSX76ooDTl3+MyQwRzm2xV0="; hash = "sha256-1EXXXflhDeU+erdI+NsWxSX76ooDTl3+MyQwRzm2xV0=";
}; };
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
azure-core azure-core
aiodns aiodns
@ -56,6 +62,12 @@ buildPythonPackage rec {
"test_conf_async_requests" "test_conf_async_requests"
"test_conf_async_requests" "test_conf_async_requests"
"test_conf_async_trio_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 = [ pythonImportsCheck = [

View File

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