From 4be1c497a4e7c83682514a8d504a77bfaf14f4cb Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Fri, 29 Apr 2022 14:45:45 +0200 Subject: [PATCH] python310Packages.azure-identity: disable on older Python releases --- .../python-modules/azure-identity/default.nix | 31 +++++++++---------- 1 file changed, 14 insertions(+), 17 deletions(-) diff --git a/pkgs/development/python-modules/azure-identity/default.nix b/pkgs/development/python-modules/azure-identity/default.nix index 3ae3350b36c5..bf0af097b158 100644 --- a/pkgs/development/python-modules/azure-identity/default.nix +++ b/pkgs/development/python-modules/azure-identity/default.nix @@ -1,58 +1,55 @@ -{ buildPythonPackage +{ lib +, buildPythonPackage , fetchPypi -, lib - -# pythonPackages , azure-common , azure-core -, azure-nspkg , cryptography , mock , msal , msal-extensions , msrest , msrestazure +, pythonOlder +, six }: buildPythonPackage rec { pname = "azure-identity"; version = "1.10.0"; + format = "setuptools"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; extension = "zip"; - sha256 = "sha256-ZW5QNNnO8pfPmzU3btYgCFJzwYz6Us6kpiW/DV0tZAk="; + hash = "sha256-ZW5QNNnO8pfPmzU3btYgCFJzwYz6Us6kpiW/DV0tZAk="; }; - postPatch = '' - substituteInPlace setup.py \ - --replace "msal-extensions~=0.3.0" "msal-extensions" - ''; - propagatedBuildInputs = [ azure-common azure-core - azure-nspkg cryptography mock msal msal-extensions msrest msrestazure + six ]; - pythonImportsCheck = [ "azure.identity" ]; + pythonImportsCheck = [ + "azure.identity" + ]; # Requires checkout from mono-repo and a mock account: - # https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/tests.yml + # https://github.com/Azure/azure-sdk-for-python/blob/master/sdk/identity/tests.yml doCheck = false; meta = with lib; { description = "Microsoft Azure Identity Library for Python"; homepage = "https://github.com/Azure/azure-sdk-for-python"; license = licenses.mit; - maintainers = with maintainers; [ - kamadorueda - ]; + maintainers = with maintainers; [ kamadorueda ]; }; }