1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pythonOlder,
6 boto3,
7 envs,
8 python-jose,
9 requests,
10}:
11
12buildPythonPackage rec {
13 pname = "warrant-lite";
14 version = "1.0.4";
15 format = "setuptools";
16
17 disabled = pythonOlder "3.7";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-FunWoslZn3o0WHet2+LtggO3bbbe2ULMXW93q07GxJ4=";
22 };
23
24 propagatedBuildInputs = [
25 boto3
26 envs
27 python-jose
28 requests
29 ];
30
31 postPatch = ''
32 # requirements.txt is not part of the source
33 substituteInPlace setup.py \
34 --replace "parse_requirements('requirements.txt')," "[],"
35 '';
36
37 # Tests require credentials
38 doCheck = false;
39
40 pythonImportsCheck = [ "warrant_lite" ];
41
42 meta = with lib; {
43 description = "Module for process SRP requests for AWS Cognito";
44 homepage = "https://github.com/capless/warrant-lite";
45 license = with licenses; [ asl20 ];
46 maintainers = with maintainers; [ fab ];
47 };
48}