Fabian Affolter 2024-01-21 21:15:20 +01:00
parent bfec64e243
commit 901f600618

View File

@ -1,46 +1,47 @@
{ buildPythonPackage { lib
, fetchPypi , buildPythonPackage
, lib , fetchFromGitHub
, isPy27
# pythonPackages
, msal , msal
, pathlib2
, portalocker , portalocker
, setuptools
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "msal-extensions"; pname = "msal-extensions";
version = "1.0.0"; version = "1.1.0";
format = "setuptools"; pyproject = true;
src = fetchPypi { disabled = pythonOlder "3.7";
inherit pname version;
hash = "sha256-xnarpWsMzjeD3htcXs/oKNuZgWeHUSbKS0fcZDZFE1Q="; src = fetchFromGitHub {
owner = "AzureAD";
repo = "microsoft-authentication-extensions-for-python";
rev = "refs/tags/${version}";
hash = "sha256-ScInTvOgFxP5mgep5FRu6YZHPTtXhrcZGFE7Wdvcm4c=";
}; };
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [ propagatedBuildInputs = [
msal msal
portalocker portalocker
] ++ lib.optionals isPy27 [
pathlib2
]; ];
# upstream doesn't update this requirement probably because they use pip
postPatch = ''
substituteInPlace setup.py \
--replace "portalocker~=1.0" "portalocker"
'';
# No tests found # No tests found
doCheck = false; doCheck = false;
pythonImportsCheck = [
"msal_extensions"
];
meta = with lib; { meta = with lib; {
description = "The Microsoft Authentication Library Extensions (MSAL-Extensions) for Python"; description = "The Microsoft Authentication Library Extensions (MSAL-Extensions) for Python";
homepage = "https://github.com/AzureAD/microsoft-authentication-extensions-for-python"; homepage = "https://github.com/AzureAD/microsoft-authentication-extensions-for-python";
changelog = "https://github.com/AzureAD/microsoft-authentication-extensions-for-python/releases/tag/${version}";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ maintainers = with maintainers; [ kamadorueda ];
kamadorueda
];
}; };
} }