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