python3Packages.pycognito: 0.1.5 -> 2021.03.1

This commit is contained in:
Fabian Affolter 2021-04-11 12:08:45 +02:00
parent 144cf60076
commit c1f31aaf22

View file

@ -1,7 +1,6 @@
{ lib
, boto3
, buildPythonPackage
, cryptography
, envs
, fetchFromGitHub
, isPy27
@ -13,20 +12,16 @@
buildPythonPackage rec {
pname = "pycognito";
version = "0.1.5";
version = "2021.03.1";
disabled = isPy27;
src = fetchFromGitHub {
owner = "pvizeli";
repo = pname;
rev = version;
sha256 = "sha256-RJeHPCTuaLN+zB0N0FGt4qrTI6++1ks5iBn64Cx0Psc=";
sha256 = "sha256-V3R6i1/FZrjcfRqJhczjURr/+x++iCvZ3aCK9wdEL1A=";
};
postPatch = ''
substituteInPlace setup.py \
--replace 'python-jose[cryptography]' 'python-jose'
'';
propagatedBuildInputs = [
boto3
envs
@ -34,20 +29,24 @@ buildPythonPackage rec {
requests
];
disabled = isPy27;
checkInputs = [
mock
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace 'python-jose[cryptography]' 'python-jose'
'';
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";
homepage = "https://GitHub.com/pvizeli/pycognito";
homepage = "https://github.com/pvizeli/pycognito";
license = licenses.asl20;
maintainers = [ maintainers.mic92 ];
maintainers = with maintainers; [ mic92 ];
};
}