python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / python-modules / warrant-lite / default.nix
blob4d5d77c2e84dbd84c0eccaf20b4235fe5f4eee20
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , pythonOlder
5 , boto3
6 , envs
7 , python-jose
8 , requests
9 }:
11 buildPythonPackage rec {
12   pname = "warrant-lite";
13   version = "1.0.4";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchPypi {
19     inherit pname version;
20     hash = "sha256-FunWoslZn3o0WHet2+LtggO3bbbe2ULMXW93q07GxJ4=";
21   };
23   propagatedBuildInputs = [
24     boto3
25     envs
26     python-jose
27     requests
28   ];
30   postPatch = ''
31     # requirements.txt is not part of the source
32     substituteInPlace setup.py \
33       --replace "parse_requirements('requirements.txt')," "[],"
34   '';
36   # Tests require credentials
37   doCheck = false;
39   pythonImportsCheck = [
40     "warrant_lite"
41   ];
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   };