2019-12-28 09:05:17 +00:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, lib
|
2020-10-17 17:52:18 +01:00
|
|
|
, isPy27
|
2019-12-28 09:05:17 +00:00
|
|
|
|
|
|
|
# pythonPackages
|
|
|
|
, msal
|
2020-10-17 17:52:18 +01:00
|
|
|
, pathlib2
|
2019-12-28 09:05:17 +00:00
|
|
|
, portalocker
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "msal-extensions";
|
2020-11-28 19:39:30 +00:00
|
|
|
version = "0.3.0";
|
2019-12-28 09:05:17 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-28 19:39:30 +00:00
|
|
|
sha256 = "0qbq5qn46053aclpwyzac5zs2xgqirn4hwrf1plrg0m8bnhxy8sm";
|
2019-12-28 09:05:17 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
msal
|
|
|
|
portalocker
|
2020-10-17 17:52:18 +01:00
|
|
|
] ++ lib.optionals isPy27 [
|
|
|
|
pathlib2
|
2019-12-28 09:05:17 +00:00
|
|
|
];
|
|
|
|
|
2021-06-28 23:44:10 +01:00
|
|
|
# upstream doesn't update this requirement probably because they use pip
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "portalocker~=1.0" "portalocker"
|
|
|
|
'';
|
|
|
|
|
2019-12-28 09:05:17 +00:00
|
|
|
# No tests found
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "The Microsoft Authentication Library Extensions (MSAL-Extensions) for Python";
|
2021-06-28 23:44:10 +01:00
|
|
|
homepage = "https://github.com/AzureAD/microsoft-authentication-extensions-for-python";
|
2019-12-28 09:05:17 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [
|
|
|
|
kamadorueda
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|