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