nixpkgs/pkgs/development/python-modules/adal/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

50 lines
993 B
Nix
Raw Normal View History

2022-01-01 11:30:43 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, httpretty
, pyjwt
, pytestCheckHook
, python-dateutil
, requests
}:
buildPythonPackage rec {
pname = "adal";
2021-06-18 21:47:07 +00:00
version = "1.2.7";
2022-01-01 11:30:43 +00:00
format = "setuptools";
2022-01-01 11:30:43 +00:00
src = fetchFromGitHub {
owner = "AzureAD";
repo = "azure-activedirectory-library-for-python";
rev = version;
hash = "sha256-HE8/P0aohoZNeMdcQVKdz6M31FMrjsd7oVytiaD0idI=";
};
2022-01-01 11:30:43 +00:00
propagatedBuildInputs = [
pyjwt
python-dateutil
requests
];
checkInputs = [
httpretty
pytestCheckHook
];
disabledTests = [
# AssertionError: 'Mex [23 chars]tp error:...
"test_failed_request"
];
pythonImportsCheck = [
"adal"
];
meta = with lib; {
2022-01-01 11:30:43 +00:00
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;
2021-12-18 09:25:46 +00:00
maintainers = with maintainers; [ ];
};
}