python3Packages.pycognito: use pytestCheckHook

This commit is contained in:
Fabian Affolter 2021-01-22 13:01:56 +01:00 committed by Jonathan Ringer
parent 6759a781c7
commit 32b2eb6730

View file

@ -6,6 +6,7 @@
, envs
, python-jose
, requests
, pytestCheckHook
, mock
, isPy27
}:
@ -16,7 +17,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "pvizeli";
repo = "pycognito";
repo = pname;
rev = version;
sha256 = "sha256-RJeHPCTuaLN+zB0N0FGt4qrTI6++1ks5iBn64Cx0Psc=";
};
@ -35,7 +36,13 @@ buildPythonPackage rec {
disabled = isPy27;
checkInputs = [ mock ];
checkInputs = [
mock
pytestCheckHook
];
pytestFlagsArray = [ "tests.py" ];
pythonImportsCheck = [ "pycognito" ];
meta = with lib; {
description = "Python class to integrate Boto3's Cognito client so it is easy to login users. With SRP support";