blob: df012dfd864885e807e4aa9137e7e48b35b517a6 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchPypi,
boto3,
envs,
python-jose,
requests,
}:
buildPythonPackage rec {
pname = "warrant-lite";
version = "1.0.4";
format = "setuptools";
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 = {
description = "Module for process SRP requests for AWS Cognito";
homepage = "https://github.com/capless/warrant-lite";
license = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ fab ];
};
}
|