From 0d1b80748e5b9a7700040d6cee746b6fa7b391c5 Mon Sep 17 00:00:00 2001 From: K900 Date: Sun, 15 May 2022 20:58:11 +0300 Subject: [PATCH] python*Packages.azure-core: 1.23.1 -> 1.24.0, fix tests Upstream PR: https://github.com/Azure/azure-sdk-for-python/pull/24450 --- .../python-modules/azure-core/default.nix | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/azure-core/default.nix b/pkgs/development/python-modules/azure-core/default.nix index 260a40e9de806..6a667d468b5a4 100644 --- a/pkgs/development/python-modules/azure-core/default.nix +++ b/pkgs/development/python-modules/azure-core/default.nix @@ -1,4 +1,4 @@ -{ lib, stdenv, buildPythonPackage, fetchPypi, isPy27 +{ lib, stdenv, buildPythonPackage, fetchpatch, fetchPypi, isPy27 , aiodns , aiohttp , flask @@ -15,16 +15,26 @@ }: buildPythonPackage rec { - version = "1.23.1"; + version = "1.24.0"; pname = "azure-core"; disabled = isPy27; 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