Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 46 lines 874 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, cryptography 5, boto3 6, envs 7, python-jose 8, requests 9, mock 10, isPy27 11}: 12 13buildPythonPackage rec { 14 pname = "pycognito"; 15 version = "0.1.3"; 16 17 src = fetchFromGitHub { 18 owner = "pvizeli"; 19 repo = "pycognito"; 20 rev = version; 21 sha256 = "0wy6d274xda7v6dazv10h2vwig2avfyz8mh2lpd1a5k7i06r335r"; 22 }; 23 24 postPatch = '' 25 substituteInPlace setup.py \ 26 --replace 'python-jose[cryptography]' 'python-jose' 27 ''; 28 29 propagatedBuildInputs = [ 30 boto3 31 envs 32 python-jose 33 requests 34 ]; 35 36 disabled = isPy27; 37 38 checkInputs = [ mock ]; 39 40 meta = with lib; { 41 description = "Python class to integrate Boto3's Cognito client so it is easy to login users. With SRP support"; 42 homepage = "https://GitHub.com/pvizeli/pycognito"; 43 license = licenses.asl20; 44 maintainers = [ maintainers.mic92 ]; 45 }; 46}