python312Packages.dash-renderer: remove (#369714)
[NixPkgs.git] / pkgs / development / python-modules / warrant / default.nix
blob4dc8e940b3b317299b8339cc98d4a2452afd5891
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   fetchpatch,
6   mock,
7   boto3,
8   envs,
9   python-jose,
10   requests,
13 buildPythonPackage {
14   pname = "warrant";
15   version = "0.6.1";
16   format = "setuptools";
18   # move to fetchPyPi when https://github.com/capless/warrant/issues/97 is fixed
19   src = fetchFromGitHub {
20     owner = "capless";
21     repo = "warrant";
22     rev = "ff2e4793d8479e770f2461ef7cbc0c15ee784395";
23     sha256 = "0gw3crg64p1zx3k5js0wh0x5bldgs7viy4g8hld9xbka8q0374hi";
24   };
26   patches = [
27     (fetchpatch {
28       name = "fix-pip10-compat.patch";
29       url = "https://github.com/capless/warrant/commit/ae17d17d9888b9218a8facf6f6ad0bf4adae9a12.patch";
30       sha256 = "1lvqi2qfa3kxdz05ab2lc7xnd3piyvvnz9kla2jl4pchi876z17c";
31     })
32   ];
34   # this needs to go when 0.6.2 or later is released
35   postPatch = ''
36     substituteInPlace requirements.txt \
37       --replace "python-jose-cryptodome>=1.3.2" "python-jose>=2.0.0"
38   '';
40   nativeCheckInputs = [ mock ];
42   propagatedBuildInputs = [
43     boto3
44     envs
45     python-jose
46     requests
47   ];
49   # all the checks are failing
50   doCheck = false;
52   meta = with lib; {
53     description = "Python library for using AWS Cognito with support for SRP";
54     homepage = "https://github.com/capless/warrant";
55     license = lib.licenses.asl20;
56     maintainers = with lib.maintainers; [ peterhoeg ];
57   };