python3Packages.pytest-click: 0.3 -> 1.0.2

Drop Python 2.X support
This commit is contained in:
Drew Risinger 2021-02-12 08:53:27 -05:00
parent d1b631471c
commit 979a6b6c97

View File

@ -1,40 +1,36 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, pythonOlder
, pytest , pytest
, click , click
, pytestcov , pytestCheckHook
, isPy27
, mock
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "pytest-click"; pname = "pytest-click";
version = "0.3"; version = "1.0.2";
disabled = pythonOlder "3.5";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "Stranger6667"; owner = "Stranger6667";
repo = "pytest-click"; repo = "pytest-click";
rev = version; rev = "v${version}";
sha256 = "1cd15anw8d4rq6qs03j6ag38199rqw7vp0w0w0fm41mvdzr0lwvz"; sha256 = "197nvlqlyfrqpy5lrkmfh1ywpr6j9zipxl9d7syg2a2n7jz3a8rj";
}; };
postConfigure = ''
substituteInPlace setup.py \
--replace "mock==1.0.1" "mock"
'';
propagatedBuildInputs = [ propagatedBuildInputs = [
pytest pytest
click click
]; ];
checkInputs = [ pytestcov ] ++ lib.optionals isPy27 [ mock ]; checkInputs = [ pytestCheckHook ];
meta = with lib; { meta = with lib; {
description = "pytest plugin for click"; description = "pytest plugin for click";
homepage = "https://github.com/Stranger6667/pytest-click"; homepage = "https://github.com/Stranger6667/pytest-click";
changelog = "https://github.com/Stranger6667/pytest-click/releases/tag/v${version}";
license = licenses.mit; license = licenses.mit;
maintainers = [ maintainers.costrouc ]; maintainers = with maintainers; [ costrouc ];
}; };
} }