python3.pkgs.pycognito: init at 0.1.2

This commit is contained in:
Jörg Thalheim 2020-03-18 17:02:39 +00:00
parent c646a56802
commit 0d0a9776a2
No known key found for this signature in database
GPG Key ID: 003F2096411B5F92
2 changed files with 48 additions and 0 deletions

View File

@ -0,0 +1,46 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, cryptography
, boto3
, envs
, python-jose
, requests
, mock
, isPy27
}:
buildPythonPackage rec {
pname = "pycognito";
version = "0.1.2";
src = fetchFromGitHub {
owner = "pvizeli";
repo = "pycognito";
rev = version;
sha256 = "01zns522awm5yp5cbk1y7k7px534i5akiivip709i1naph3hvnfk";
};
postPatch = ''
substituteInPlace setup.py \
--replace 'python-jose[cryptography]' 'python-jose'
'';
propagatedBuildInputs = [
boto3
envs
python-jose
requests
];
disabled = isPy27;
checkInputs = [ mock ];
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";
license = licenses.asl20;
maintainers = [ maintainers.mic92 ];
};
}

View File

@ -902,6 +902,8 @@ in {
mpi = pkgs.openmpi; mpi = pkgs.openmpi;
}; };
pycognito = callPackage ../development/python-modules/pycognito { };
python-mpv-jsonipc = callPackage ../development/python-modules/python-mpv-jsonipc { }; python-mpv-jsonipc = callPackage ../development/python-modules/python-mpv-jsonipc { };
msal = callPackage ../development/python-modules/msal { }; msal = callPackage ../development/python-modules/msal { };