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