about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyjwt
diff options
context:
space:
mode:
authorRobert Schütz <nix@dotlambda.de>2021-12-12 21:07:39 -0800
committerJonathan Ringer <jonringer@users.noreply.github.com>2021-12-12 22:07:19 -0800
commit8525e831a83de7a8d27aa3fba27e6800b4d0c0d7 (patch)
treead7646c812a5bf86d7a46e37539e0fefdd0c188a /pkgs/development/python-modules/pyjwt
parentfcf88f377b2320c78ab8177a5a0b52869ac6fd11 (diff)
python2Packages.pyjwt: init at 1.7.1
needed for NixOps
Diffstat (limited to 'pkgs/development/python-modules/pyjwt')
-rw-r--r--pkgs/development/python-modules/pyjwt/1.nix44
1 files changed, 44 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pyjwt/1.nix b/pkgs/development/python-modules/pyjwt/1.nix
new file mode 100644
index 0000000000000..9978302d1cc44
--- /dev/null
+++ b/pkgs/development/python-modules/pyjwt/1.nix
@@ -0,0 +1,44 @@
+{ lib
+, buildPythonPackage
+, fetchPypi
+, cryptography
+, ecdsa
+, pytestCheckHook
+, pythonOlder
+}:
+
+buildPythonPackage rec {
+  pname = "pyjwt";
+  version = "1.7.1";
+
+  src = fetchPypi {
+    pname = "PyJWT";
+    inherit version;
+    sha256 = "8d59a976fb773f3e6a39c85636357c4f0e242707394cadadd9814f5cbaa20e96";
+  };
+
+  postPatch = ''
+    sed -i '/^addopts/d' setup.cfg
+  '';
+
+  propagatedBuildInputs = [
+    cryptography
+    ecdsa
+  ];
+
+  checkInputs = [
+    pytestCheckHook
+  ];
+
+  disabledTests = [
+    "test_ec_verify_should_return_false_if_signature_invalid"
+  ];
+
+  pythonImportsCheck = [ "jwt" ];
+
+  meta = with lib; {
+    description = "JSON Web Token implementation in Python";
+    homepage = "https://github.com/jpadilla/pyjwt";
+    license = licenses.mit;
+  };
+}