nixpkgs/pkgs/development/python-modules/clickclick/default.nix

31 lines
836 B
Nix
Raw Normal View History

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