diff --git a/pkgs/development/python-modules/pydiscourse/default.nix b/pkgs/development/python-modules/pydiscourse/default.nix index d17c719196e1..f897509c182e 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 = [