summary refs log tree commit diff
path: root/pkgs/development/python-modules/warrant
diff options
context:
space:
mode:
authorPeter Hoeg <peter@hoeg.com>2018-04-10 00:12:13 +0800
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-04-16 07:58:28 +0200
commitc859867e4222621ae2bca28dd36ca73b2a5d0e0a (patch)
treee4726e084fd7924f58844a63bb9a17f020dbfedf /pkgs/development/python-modules/warrant
parent764d03decc33fa05d464557bd07edbbf9bf20a95 (diff)
downloadnixpkgs-c859867e4222621ae2bca28dd36ca73b2a5d0e0a.tar
nixpkgs-c859867e4222621ae2bca28dd36ca73b2a5d0e0a.tar.gz
nixpkgs-c859867e4222621ae2bca28dd36ca73b2a5d0e0a.tar.bz2
nixpkgs-c859867e4222621ae2bca28dd36ca73b2a5d0e0a.tar.lz
nixpkgs-c859867e4222621ae2bca28dd36ca73b2a5d0e0a.tar.xz
nixpkgs-c859867e4222621ae2bca28dd36ca73b2a5d0e0a.tar.zst
nixpkgs-c859867e4222621ae2bca28dd36ca73b2a5d0e0a.zip
pythonPackages.warrant: init at 0.6.1
Diffstat (limited to 'pkgs/development/python-modules/warrant')
-rw-r--r--pkgs/development/python-modules/warrant/default.nix36
1 files changed, 36 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/warrant/default.nix b/pkgs/development/python-modules/warrant/default.nix
new file mode 100644
index 00000000000..ac83430fbae
--- /dev/null
+++ b/pkgs/development/python-modules/warrant/default.nix
@@ -0,0 +1,36 @@
+{ lib, buildPythonPackage, fetchFromGitHub, fetchPypi
+, mock
+, boto3, envs, python-jose, requests }:
+
+buildPythonPackage rec {
+  pname = "warrant";
+  version = "0.6.1";
+
+  # move to fetchPyPi when https://github.com/capless/warrant/issues/97 is fixed
+  src = fetchFromGitHub {
+    owner  = "capless";
+    repo   = "warrant";
+    rev    = "ff2e4793d8479e770f2461ef7cbc0c15ee784395";
+    sha256 = "0gw3crg64p1zx3k5js0wh0x5bldgs7viy4g8hld9xbka8q0374hi";
+  };
+
+  # this needs to go when 0.6.2 or later is released
+  postPatch = ''
+    substituteInPlace requirements.txt \
+      --replace "python-jose-cryptodome>=1.3.2" "python-jose>=2.0.0"
+  '';
+
+  checkInputs = [ mock ];
+
+  propagatedBuildInputs = [ boto3 envs python-jose requests ];
+
+  # all the checks are failing
+  doCheck = false;
+
+  meta = with lib; {
+    description = "Python library for using AWS Cognito with support for SRP";
+    homepage = https://github.com/capless/warrant;
+    license = lib.licenses.asl20;
+    maintainers = with lib.maintainers; [ peterhoeg ];
+  };
+}