2019-12-28 10:02:50 +01:00
|
|
|
{ buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, isPy38
|
|
|
|
, lib
|
|
|
|
|
|
|
|
# pythonPackages
|
|
|
|
, azure-common
|
|
|
|
, azure-core
|
|
|
|
, azure-nspkg
|
|
|
|
, cryptography
|
|
|
|
, mock
|
|
|
|
, msal
|
|
|
|
, msal-extensions
|
|
|
|
, msrest
|
|
|
|
, msrestazure
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "azure-identity";
|
2020-08-15 21:25:18 +02:00
|
|
|
version = "1.4.0";
|
2019-12-28 10:02:50 +01:00
|
|
|
disabled = isPy38;
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
extension = "zip";
|
2020-08-15 21:25:18 +02:00
|
|
|
sha256 = "820e1f3e21f90d36063239c6cb7ca9a6bb644cb120a6b1ead3081cafdf6ceaf8";
|
2019-12-28 10:02:50 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
azure-common
|
|
|
|
azure-core
|
|
|
|
azure-nspkg
|
|
|
|
cryptography
|
|
|
|
mock
|
|
|
|
msal
|
|
|
|
msal-extensions
|
|
|
|
msrest
|
|
|
|
msrestazure
|
|
|
|
];
|
|
|
|
|
2020-07-29 22:58:24 +02:00
|
|
|
prePatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace msal-extensions~=0.1.3 msal-extensions
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "azure.identity" ];
|
|
|
|
|
2019-12-28 10:02:50 +01:00
|
|
|
# Requires checkout from mono-repo and a mock account:
|
|
|
|
# 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
|
|
|
|
];
|
|
|
|
};
|
|
|
|
}
|