2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchPypi,
|
|
|
|
pythonOlder,
|
|
|
|
boto3,
|
|
|
|
envs,
|
|
|
|
python-jose,
|
|
|
|
requests,
|
2022-02-10 20:34:41 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "warrant_lite" ];
|
2022-02-10 20:34:41 +00:00
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|