From 95df9607b5915b4e200cc14da20ae7bb9129b14b Mon Sep 17 00:00:00 2001 From: Artturin Date: Tue, 29 Jun 2021 01:44:10 +0300 Subject: [PATCH] python3Packages.msal-extensions: add substituteInPlace for portalocker version --- .../python-modules/msal-extensions/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/msal-extensions/default.nix b/pkgs/development/python-modules/msal-extensions/default.nix index 82ef6fc77f03..a673d96893fa 100644 --- a/pkgs/development/python-modules/msal-extensions/default.nix +++ b/pkgs/development/python-modules/msal-extensions/default.nix @@ -25,12 +25,18 @@ buildPythonPackage rec { pathlib2 ]; + # upstream doesn't update this requirement probably because they use pip + postPatch = '' + substituteInPlace setup.py \ + --replace "portalocker~=1.0" "portalocker" + ''; + # No tests found doCheck = false; meta = with lib; { description = "The Microsoft Authentication Library Extensions (MSAL-Extensions) for Python"; - homepage = "https://github.com/AzureAD/microsoft-authentication-library-for-python"; + homepage = "https://github.com/AzureAD/microsoft-authentication-extensions-for-python"; license = licenses.mit; maintainers = with maintainers; [ kamadorueda