pythonPackages.pytest-click: init at 0.3

This commit is contained in:
Chris Ostrouchov 2019-04-12 09:46:09 -04:00
parent 3268907410
commit 9e2ff240da
No known key found for this signature in database
GPG Key ID: 9ED59B0AB1EAF573
2 changed files with 42 additions and 0 deletions

View File

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

View File

@ -736,6 +736,8 @@ in {
pytesseract = callPackage ../development/python-modules/pytesseract { };
pytest-click = callPackage ../development/python-modules/pytest-click { };
pytest-mypy = callPackage ../development/python-modules/pytest-mypy { };
pytest-pylint = callPackage ../development/python-modules/pytest-pylint { };