diff options
author | Fabian Affolter <mail@fabian-affolter.ch> | 2021-01-22 13:01:56 +0100 |
---|---|---|
committer | Jonathan Ringer <jonringer@users.noreply.github.com> | 2021-01-22 07:39:44 -0800 |
commit | 32b2eb673047d4bd9e6cd8e669c40e8bcdb22cef (patch) | |
tree | 0aef27336525a7d7ec2049d7c6b3226ad6aeef5c /pkgs | |
parent | 6759a781c73c729c35d716ddad7beddd35f1240b (diff) |
python3Packages.pycognito: use pytestCheckHook
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/pycognito/default.nix | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/pkgs/development/python-modules/pycognito/default.nix b/pkgs/development/python-modules/pycognito/default.nix index 1a22932680dc..58c913c08ccc 100644 --- a/pkgs/development/python-modules/pycognito/default.nix +++ b/pkgs/development/python-modules/pycognito/default.nix @@ -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"; |