python3Packages.adal: enable tests

This commit is contained in:
Fabian Affolter 2022-01-01 12:30:43 +01:00
parent 38dc27dab2
commit 34bca23464

View file

@ -1,19 +1,47 @@
{ lib, buildPythonPackage, fetchPypi { lib
, requests, pyjwt, python-dateutil }: , buildPythonPackage
, fetchFromGitHub
, httpretty
, pyjwt
, pytestCheckHook
, python-dateutil
, requests
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "adal"; pname = "adal";
version = "1.2.7"; version = "1.2.7";
format = "setuptools";
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "AzureAD";
sha256 = "d74f45b81317454d96e982fd1c50e6fb5c99ac2223728aea8764433a39f566f1"; repo = "azure-activedirectory-library-for-python";
rev = version;
hash = "sha256-HE8/P0aohoZNeMdcQVKdz6M31FMrjsd7oVytiaD0idI=";
}; };
propagatedBuildInputs = [ requests pyjwt python-dateutil ]; propagatedBuildInputs = [
pyjwt
python-dateutil
requests
];
checkInputs = [
httpretty
pytestCheckHook
];
disabledTests = [
# AssertionError: 'Mex [23 chars]tp error:...
"test_failed_request"
];
pythonImportsCheck = [
"adal"
];
meta = with lib; { meta = with lib; {
description = "Library to make it easy for python application to authenticate to Azure Active Directory (AAD) in order to access AAD protected web resources"; 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"; homepage = "https://github.com/AzureAD/azure-activedirectory-library-for-python";
license = licenses.mit; license = licenses.mit;
maintainers = with maintainers; [ ]; maintainers = with maintainers; [ ];