mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-27 16:15:05 +00:00
50 lines
993 B
Nix
50 lines
993 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, httpretty
|
|
, pyjwt
|
|
, pytestCheckHook
|
|
, python-dateutil
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "adal";
|
|
version = "1.2.7";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "AzureAD";
|
|
repo = "azure-activedirectory-library-for-python";
|
|
rev = version;
|
|
hash = "sha256-HE8/P0aohoZNeMdcQVKdz6M31FMrjsd7oVytiaD0idI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
pyjwt
|
|
python-dateutil
|
|
requests
|
|
];
|
|
|
|
checkInputs = [
|
|
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 = with maintainers; [ ];
|
|
};
|
|
}
|