@@ -4,29 +4,32 @@
44, click
55, pytestCheckHook
66, shellingham
7−, pytest-cov
87, pytest-xdist
98, pytest-sugar
109, coverage
1110, mypy
1211, black
1312, isort
13+, pythonOlder
1414}:
1515
1616buildPythonPackage rec {
1717 pname = "typer";
18− version = "0.3.2";
18+ version = "0.4.0";
19+
20+ disabled = pythonOlder "3.6";
1921
2022 src = fetchPypi {
2123 inherit pname version;
22− sha256 = "00v3h63dq8yxahp9vg3yb9r27l2niwv8gv0dbds9dzrc298dfmal";
24+ sha256 = "1pgm0zsylbmz1r96q4n3rfi0h3pn4jss2yfs83z0yxa90nmsxhv3";
2325 };
2426
25− propagatedBuildInputs = [ click ];
27+ propagatedBuildInputs = [
28+ click
29+ ];
2630
2731 checkInputs = [
2832 pytestCheckHook
29− pytest-cov
3033 pytest-xdist
3134 pytest-sugar
3235 shellingham
@@ -35,18 +38,17 @@ buildPythonPackage rec {
3538 black
3639 isort
3740 ];
38− pytestFlagsArray = [
39− "--ignore=tests/test_completion/test_completion.py"
40− "--ignore=tests/test_completion/test_completion_install.py"
41− ];
41+
42+ preCheck = ''
43+ export HOME=$(mktemp -d);
44+ '';
45+
46+ pythonImportsCheck = [ "typer" ];
4247
4348 meta = with lib; {
49+ description = "Python library for building CLI applications";
4450 homepage = "https://typer.tiangolo.com/";
45− description = "Typer, build great CLIs. Easy to code. Based on Python type hints.";
4651 license = licenses.mit;
47− # is incompatible with click8
48− # https://github.com/tiangolo/typer/issues/280
49− broken = true;
50− maintainers = [ maintainers.winpat ];
52+ maintainers = with maintainers; [ winpat ];
5153 };
5254}