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