python3Packages.warrant-lite: init at 1.0.4

This commit is contained in:
Fabian Affolter 2022-02-08 17:10:59 +01:00 committed by Jonathan Ringer
parent 590b57dda6
commit 686db44ab6
2 changed files with 51 additions and 0 deletions

View file

@ -0,0 +1,49 @@
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, boto3
, envs
, python-jose
, requests
}:
buildPythonPackage rec {
pname = "warrant-lite";
version = "1.0.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-FunWoslZn3o0WHet2+LtggO3bbbe2ULMXW93q07GxJ4=";
};
propagatedBuildInputs = [
boto3
envs
python-jose
requests
];
postPatch = ''
# requirements.txt is not part of the source
substituteInPlace setup.py \
--replace "parse_requirements('requirements.txt')," "[],"
'';
# Tests require credentials
doCheck = false;
pythonImportsCheck = [
"warrant_lite"
];
meta = with lib; {
description = "Module for process SRP requests for AWS Cognito";
homepage = "https://github.com/capless/warrant-lite";
license = with licenses; [ asl20 ];
maintainers = with maintainers; [ fab ];
};
}

View file

@ -10376,6 +10376,8 @@ in {
warrant = callPackage ../development/python-modules/warrant { };
warrant-lite = callPackage ../development/python-modules/warrant-lite { };
waqiasync = callPackage ../development/python-modules/waqiasync { };
wasabi = callPackage ../development/python-modules/wasabi { };