blob: 4d5d77c2e84dbd84c0eccaf20b4235fe5f4eee20 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
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 ];
};
}
|