2020-04-24 23:36:52 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
2020-10-19 00:13:06 +00:00
|
|
|
, isPy27
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# pythonPackages
|
|
|
|
, msal
|
2020-10-19 00:13:06 +00:00
|
|
|
, pathlib2
|
2020-04-24 23:36:52 +00:00
|
|
|
, portalocker
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "msal-extensions";
|
2022-04-15 01:41:22 +00:00
|
|
|
version = "1.0.0";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-xnarpWsMzjeD3htcXs/oKNuZgWeHUSbKS0fcZDZFE1Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
msal
|
|
|
|
portalocker
|
2020-10-19 00:13:06 +00:00
|
|
|
] ++ lib.optionals isPy27 [
|
|
|
|
pathlib2
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2021-07-03 03:11:41 +00:00
|
|
|
# upstream doesn't update this requirement probably because they use pip
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "portalocker~=1.0" "portalocker"
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
# No tests found
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The Microsoft Authentication Library Extensions (MSAL-Extensions) for Python";
|
2021-07-03 03:11:41 +00:00
|
|
|
homepage = "https://github.com/AzureAD/microsoft-authentication-extensions-for-python";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
kamadorueda
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|