1{ lib, buildPythonPackage, fetchPypi
2, isPy27, pythonAtLeast
3, pylev, pastel, typing ? null, enum34 ? null, crashtest }:
4
5buildPythonPackage rec {
6 pname = "clikit";
7 version = "0.6.2";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "0ngdkmb73gkp5y00q7r9k1cdlfn0wyzws2wrqlshc4hlkbdyabj4";
12 };
13
14 propagatedBuildInputs = [
15 pylev pastel
16 ]
17 ++ lib.optionals (pythonAtLeast "3.6") [ crashtest ]
18 ++ lib.optionals isPy27 [ typing enum34 ];
19
20 # The Pypi tarball doesn't include tests, and the GitHub source isn't
21 # buildable until we bootstrap poetry, see
22 # https://github.com/NixOS/nixpkgs/pull/53599#discussion_r245855665
23 doCheck = false;
24
25 meta = with lib; {
26 homepage = "https://github.com/sdispater/clikit";
27 description = "A group of utilities to build beautiful and testable command line interfaces";
28 license = licenses.mit;
29 maintainers = with maintainers; [ jakewaksbaum ];
30 };
31}