about summary refs log tree commit diff
path: root/pkgs/development/python-modules/pytest-click
diff options
context:
space:
mode:
authorDrew Risinger <drewrisinger@users.noreply.github.com>2021-02-12 08:53:27 -0500
committerDrew Risinger <drewrisinger@users.noreply.github.com>2021-02-12 09:12:43 -0500
commit979a6b6c97080ae97adbf1ad946ca98d66f523c7 (patch)
treef5ce0d7dcf3663c3c228a8a6ab04c94f59c620ac /pkgs/development/python-modules/pytest-click
parentd1b631471c66db6277246273d5f4d3dc61f4b2fb (diff)
python3Packages.pytest-click: 0.3 -> 1.0.2
Drop Python 2.X support
Diffstat (limited to 'pkgs/development/python-modules/pytest-click')
-rw-r--r--pkgs/development/python-modules/pytest-click/default.nix22
1 files changed, 9 insertions, 13 deletions
diff --git a/pkgs/development/python-modules/pytest-click/default.nix b/pkgs/development/python-modules/pytest-click/default.nix
index e271373b73ef0..0c23a907cbae2 100644
--- a/pkgs/development/python-modules/pytest-click/default.nix
+++ b/pkgs/development/python-modules/pytest-click/default.nix
@@ -1,40 +1,36 @@
 { lib
 , buildPythonPackage
 , fetchFromGitHub
+, pythonOlder
 , pytest
 , click
-, pytestcov
-, isPy27
-, mock
+, pytestCheckHook
 }:
 
 buildPythonPackage rec {
   pname = "pytest-click";
-  version = "0.3";
+  version = "1.0.2";
+  disabled = pythonOlder "3.5";
 
   src = fetchFromGitHub {
     owner = "Stranger6667";
     repo = "pytest-click";
-    rev = version;
-    sha256 = "1cd15anw8d4rq6qs03j6ag38199rqw7vp0w0w0fm41mvdzr0lwvz";
+    rev = "v${version}";
+    sha256 = "197nvlqlyfrqpy5lrkmfh1ywpr6j9zipxl9d7syg2a2n7jz3a8rj";
   };
 
-  postConfigure = ''
-    substituteInPlace setup.py \
-      --replace "mock==1.0.1" "mock"
-  '';
-
   propagatedBuildInputs = [
     pytest
     click
   ];
 
-  checkInputs = [ pytestcov ] ++ lib.optionals isPy27 [ mock ];
+  checkInputs = [ pytestCheckHook ];
 
   meta = with lib; {
     description = "pytest plugin for click";
     homepage = "https://github.com/Stranger6667/pytest-click";
+    changelog = "https://github.com/Stranger6667/pytest-click/releases/tag/v${version}";
     license = licenses.mit;
-    maintainers = [ maintainers.costrouc ];
+    maintainers = with maintainers; [ costrouc ];
   };
 }