16 buildPythonPackage rec {
19 format = "setuptools";
22 src = fetchFromGitHub {
25 rev = "refs/tags/${version}";
26 hash = "sha256-VYko5KcJvnhPUceTll2BBJWb88SYnSL7S3mZ7XSLPSQ=";
29 propagatedBuildInputs = [
35 ++ pyjwt.optional-dependencies.crypto;
44 ++ moto.optional-dependencies.cognitoidp;
47 substituteInPlace setup.py \
48 --replace 'python-jose[cryptography]' 'python-jose'
51 pytestFlagsArray = [ "tests.py" ];
54 # requires network access
55 "test_srp_requests_http_auth"
58 pythonImportsCheck = [ "pycognito" ];
61 description = "Python class to integrate Boto3's Cognito client so it is easy to login users. With SRP support";
62 homepage = "https://github.com/pvizeli/pycognito";
63 license = licenses.asl20;
64 maintainers = with maintainers; [ mic92 ];