2021-07-20 22:42:24 +02:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy36, flake8, click, pyyaml, six, pytestCheckHook, pytest-cov }:
|
2018-12-21 10:08:40 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "clickclick";
|
|
|
|
version = "1.2.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "hjacobs";
|
|
|
|
repo = "python-clickclick";
|
|
|
|
rev = version;
|
|
|
|
sha256 = "1rij9ws9nhsmagiy1vclzliiqfkxi006rf65qvrw1k3sm2s8p5g0";
|
|
|
|
};
|
|
|
|
|
2021-07-20 22:42:24 +02:00
|
|
|
checkInputs = [ pytestCheckHook pytest-cov ];
|
2018-12-21 10:08:40 +01:00
|
|
|
propagatedBuildInputs = [ flake8 click pyyaml six ];
|
|
|
|
|
2020-06-03 07:41:04 +02:00
|
|
|
# test_cli asserts on exact quoting style of output
|
|
|
|
disabledTests = [
|
2018-12-21 10:08:40 +01:00
|
|
|
"test_cli"
|
2020-06-03 07:41:04 +02:00
|
|
|
] ++ lib.optionals isPy36 [
|
2018-12-21 10:08:40 +01:00
|
|
|
"test_choice_default"
|
|
|
|
];
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-12-21 10:08:40 +01:00
|
|
|
description = "Click command line utilities";
|
2020-04-01 03:11:51 +02:00
|
|
|
homepage = "https://github.com/hjacobs/python-clickclick/";
|
2018-12-21 10:08:40 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ elohmeier ];
|
|
|
|
};
|
|
|
|
}
|