1{ buildPythonPackage
2, fetchPypi
3, lib
4, isPy27
5
6# pythonPackages
7, msal
8, pathlib2
9, portalocker
10}:
11
12buildPythonPackage rec {
13 pname = "msal-extensions";
14 version = "1.0.0";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "sha256-xnarpWsMzjeD3htcXs/oKNuZgWeHUSbKS0fcZDZFE1Q=";
19 };
20
21 propagatedBuildInputs = [
22 msal
23 portalocker
24 ] ++ lib.optionals isPy27 [
25 pathlib2
26 ];
27
28 # upstream doesn't update this requirement probably because they use pip
29 postPatch = ''
30 substituteInPlace setup.py \
31 --replace "portalocker~=1.0" "portalocker"
32 '';
33
34 # No tests found
35 doCheck = false;
36
37 meta = with lib; {
38 description = "The Microsoft Authentication Library Extensions (MSAL-Extensions) for Python";
39 homepage = "https://github.com/AzureAD/microsoft-authentication-extensions-for-python";
40 license = licenses.mit;
41 maintainers = with maintainers; [
42 kamadorueda
43 ];
44 };
45}