2019-04-12 14:46:09 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
2021-02-12 13:53:27 +00:00
|
|
|
, pythonOlder
|
2019-04-12 14:46:09 +01:00
|
|
|
, pytest
|
|
|
|
, click
|
2021-02-12 13:53:27 +00:00
|
|
|
, pytestCheckHook
|
2019-04-12 14:46:09 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pytest-click";
|
2021-02-12 13:53:27 +00:00
|
|
|
version = "1.0.2";
|
|
|
|
disabled = pythonOlder "3.5";
|
2019-04-12 14:46:09 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Stranger6667";
|
|
|
|
repo = "pytest-click";
|
2021-02-12 13:53:27 +00:00
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "197nvlqlyfrqpy5lrkmfh1ywpr6j9zipxl9d7syg2a2n7jz3a8rj";
|
2019-04-12 14:46:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pytest
|
|
|
|
click
|
|
|
|
];
|
|
|
|
|
2021-02-12 13:53:27 +00:00
|
|
|
checkInputs = [ pytestCheckHook ];
|
2019-04-12 14:46:09 +01:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "pytest plugin for click";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/Stranger6667/pytest-click";
|
2021-02-12 13:53:27 +00:00
|
|
|
changelog = "https://github.com/Stranger6667/pytest-click/releases/tag/v${version}";
|
2019-04-12 14:46:09 +01:00
|
|
|
license = licenses.mit;
|
2021-02-12 13:53:27 +00:00
|
|
|
maintainers = with maintainers; [ costrouc ];
|
2019-04-12 14:46:09 +01:00
|
|
|
};
|
|
|
|
}
|