nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 49 lines 993 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, httpretty 5, pyjwt 6, pytestCheckHook 7, python-dateutil 8, requests 9}: 10 11buildPythonPackage rec { 12 pname = "adal"; 13 version = "1.2.7"; 14 format = "setuptools"; 15 16 src = fetchFromGitHub { 17 owner = "AzureAD"; 18 repo = "azure-activedirectory-library-for-python"; 19 rev = version; 20 hash = "sha256-HE8/P0aohoZNeMdcQVKdz6M31FMrjsd7oVytiaD0idI="; 21 }; 22 23 propagatedBuildInputs = [ 24 pyjwt 25 python-dateutil 26 requests 27 ]; 28 29 checkInputs = [ 30 httpretty 31 pytestCheckHook 32 ]; 33 34 disabledTests = [ 35 # AssertionError: 'Mex [23 chars]tp error:... 36 "test_failed_request" 37 ]; 38 39 pythonImportsCheck = [ 40 "adal" 41 ]; 42 43 meta = with lib; { 44 description = "Python module to authenticate to Azure Active Directory (AAD) in order to access AAD protected web resources"; 45 homepage = "https://github.com/AzureAD/azure-activedirectory-library-for-python"; 46 license = licenses.mit; 47 maintainers = with maintainers; [ ]; 48 }; 49}