depot/third_party/nixpkgs/pkgs/development/python-modules/msal-extensions/default.nix
Default email bb584b27e9 Project import generated by Copybara.
GitOrigin-RevId: 5181d5945eda382ff6a9ca3e072ed6ea9b547fee
2022-04-15 03:41:22 +02:00

45 lines
930 B
Nix

{ buildPythonPackage
, fetchPypi
, lib
, isPy27
# pythonPackages
, msal
, pathlib2
, portalocker
}:
buildPythonPackage rec {
pname = "msal-extensions";
version = "1.0.0";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-xnarpWsMzjeD3htcXs/oKNuZgWeHUSbKS0fcZDZFE1Q=";
};
propagatedBuildInputs = [
msal
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
doCheck = false;
meta = with lib; {
description = "The Microsoft Authentication Library Extensions (MSAL-Extensions) for Python";
homepage = "https://github.com/AzureAD/microsoft-authentication-extensions-for-python";
license = licenses.mit;
maintainers = with maintainers; [
kamadorueda
];
};
}