mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-30 17:43:42 +00:00
0215034f25
when they already rely on SRI hashes.
46 lines
928 B
Nix
46 lines
928 B
Nix
{ buildPythonPackage
|
|
, fetchPypi
|
|
, lib
|
|
, isPy27
|
|
|
|
# pythonPackages
|
|
, msal
|
|
, pathlib2
|
|
, portalocker
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "msal-extensions";
|
|
version = "1.0.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "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
|
|
];
|
|
};
|
|
}
|