about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pydiscourse/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/pydiscourse/default.nix')
-rw-r--r--pkgs/development/python-modules/pydiscourse/default.nix12
1 files changed, 8 insertions, 4 deletions
diff --git a/pkgs/development/python-modules/pydiscourse/default.nix b/pkgs/development/python-modules/pydiscourse/default.nix
index d17c719196e16..f897509c182e1 100644
--- a/pkgs/development/python-modules/pydiscourse/default.nix
+++ b/pkgs/development/python-modules/pydiscourse/default.nix
@@ -1,14 +1,16 @@
 { lib
 , buildPythonPackage
 , fetchFromGitHub
+, pytest-mock
+, pytestCheckHook
 , pythonOlder
 , requests
-, unittestCheckHook
+, requests-mock
 }:
 
 buildPythonPackage rec {
   pname = "pydiscourse";
-  version = "1.4.0";
+  version = "1.6.1";
   format = "setuptools";
 
   disabled = pythonOlder "3.7";
@@ -17,7 +19,7 @@ buildPythonPackage rec {
     owner = "pydiscourse";
     repo = pname;
     rev = "refs/tags/v${version}";
-    hash = "sha256-peDkXRcD/ieWYWXqv8hPxTSNRXBHcb/3sj/JJSF2RYg=";
+    hash = "sha256-BvVKOfc/PiAnkEnH5jsd8/0owr+ZvJIz/tpZx6K0fP0=";
   };
 
   propagatedBuildInputs = [
@@ -25,7 +27,9 @@ buildPythonPackage rec {
   ];
 
   nativeCheckInputs = [
-    unittestCheckHook
+    pytest-mock
+    pytestCheckHook
+    requests-mock
   ];
 
   pythonImportsCheck = [