Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python*Packages.azure-core: 1.23.1 -> 1.24.0, fix tests #173179

Merged
merged 1 commit into from
May 16, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions pkgs/development/python-modules/azure-core/default.nix
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27
{ lib, stdenv, buildPythonPackage, fetchpatch, fetchPypi, isPy27
, aiodns
, aiohttp
, flask
Expand All @@ -15,16 +15,26 @@
}:

buildPythonPackage rec {
version = "1.23.1";
version = "1.24.0";
pname = "azure-core";
disabled = isPy27;
Copy link
Member

@fabaff fabaff May 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See https://github.com/Azure/azure-sdk-for-python/blob/azure-core_1.24.0/sdk/core/azure-core/setup.py#L68

Suggested change
disabled = isPy27;
disabled = pythonOlder "3.6";

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe in a separate PR?


src = fetchPypi {
inherit pname version;
extension = "zip";
sha256 = "sha256-KKAd+68KaBLE4qgtFkLqMJVqlznyW8d8myO5H06mjw8=";
sha256 = "sha256-NFsbBB+q19AgWyDVaX8dDfNEMC56qoUBkFWA/4e9C+U=";
};

patches = [
# FIXME: fixes tests with new versions of flask/werkzeug
# upstream PR: https://github.com/Azure/azure-sdk-for-python/pull/24450
(fetchpatch {
url = "https://github.com/Azure/azure-sdk-for-python/commit/fb20b0b985f614bb7bcd84f3f5f6f3105de25fd9.patch";
stripLen = 3;
sha256 = "sha256-Gt5T/UkQT1yml8bqYbeUpimfOPlmzpN1KKKUnbU9xJw=";
})
];

propagatedBuildInputs = [
requests
six
Expand Down