blob: bb6b018fd84906c903d1719c4fbf3df0c3022ffd (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
httpretty,
pyjwt,
pytestCheckHook,
python-dateutil,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "adal";
version = "1.2.7";
pyproject = true;
src = fetchFromGitHub {
owner = "AzureAD";
repo = "azure-activedirectory-library-for-python";
rev = version;
hash = "sha256-HE8/P0aohoZNeMdcQVKdz6M31FMrjsd7oVytiaD0idI=";
};
postPatch = ''
sed -i '/cryptography/d' setup.py
'';
build-system = [ setuptools ];
dependencies = [
pyjwt
python-dateutil
requests
];
nativeCheckInputs = [
httpretty
pytestCheckHook
];
disabledTests = [
# AssertionError: 'Mex [23 chars]tp error:...
"test_failed_request"
];
pythonImportsCheck = [ "adal" ];
meta = with lib; {
description = "Python module to authenticate to Azure Active Directory (AAD) in order to access AAD protected web resources";
homepage = "https://github.com/AzureAD/azure-activedirectory-library-for-python";
license = licenses.mit;
maintainers = [ ];
};
}
|