about summary refs log tree commit diff
path: root/pkgs/development/python-modules/oauthlib
diff options
context:
space:
mode:
authorMartin Weinelt <hexa@darmstadt.ccc.de>2021-12-25 21:27:05 +0100
committerMartin Weinelt <hexa@darmstadt.ccc.de>2022-01-06 03:09:47 +0100
commit5274779f1927cb869653ad987f0c24652bc5f84a (patch)
tree8116ac3350c8451c11e28165cdcc3b6f0fdf8862 /pkgs/development/python-modules/oauthlib
parentc57eccc31a60e0b7eeb5f03be45b37fffba9b6e2 (diff)
python3Packages.oauthlib: 2020-05-08 -> 3.1.1
Diffstat (limited to 'pkgs/development/python-modules/oauthlib')
-rw-r--r--pkgs/development/python-modules/oauthlib/default.nix31
1 files changed, 20 insertions, 11 deletions
diff --git a/pkgs/development/python-modules/oauthlib/default.nix b/pkgs/development/python-modules/oauthlib/default.nix
index 5c4cbc78adb7e..01e6ca29b5d9b 100644
--- a/pkgs/development/python-modules/oauthlib/default.nix
+++ b/pkgs/development/python-modules/oauthlib/default.nix
@@ -1,31 +1,40 @@
 { lib
 , buildPythonPackage
 , fetchFromGitHub
-, mock
-, pytest
-, cryptography
+
+# propagates
 , blinker
+, cryptography
 , pyjwt
+
+# test
+, mock
+, pytestCheckHook
 }:
 
 buildPythonPackage rec {
   pname = "oauthlib";
-  version = "unstable-2020-05-08";
+  version = "3.1.1";
+  format = "setuptools";
 
   # master supports pyjwt==1.7.1
   src = fetchFromGitHub {
     owner = pname;
     repo = pname;
-    rev = "46647402896db5f0d979eba9594623e889739060";
-    sha256 = "1wrdjdvlfcd74lckcgascnasrffg8sip0z673si4ag5kv4afiz3l";
+    rev = "v${version}";
+    hash = "sha256:1bgxpzh11i0x7h9py3a29cz5z714b3p498b62znnn5ciy0cr80sv";
   };
 
-  checkInputs = [ mock pytest ];
-  propagatedBuildInputs = [ cryptography blinker pyjwt ];
+  propagatedBuildInputs = [
+    blinker
+    cryptography
+    pyjwt
+  ];
 
-  checkPhase = ''
-    py.test tests/
-  '';
+  checkInputs = [
+    mock
+    pytestCheckHook
+  ];
 
   meta = with lib; {
     homepage = "https://github.com/idan/oauthlib";