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