@@ -4,29 +4,32 @@
5, pytestCheckHook
5, pytestCheckHook
6, shellingham
6, shellingham
8, pytest-xdist
7, pytest-xdist
9, pytest-sugar
8, pytest-sugar
16buildPythonPackage rec {
16buildPythonPackage rec {
17 pname = "typer";
17 pname = "typer";
18− version = "0.3.2";
18+ version = "0.4.0";
20+ disabled = pythonOlder "3.6";
20 src = fetchPypi {
22 src = fetchPypi {
21 inherit pname version;
23 inherit pname version;
22− sha256 = "00v3h63dq8yxahp9vg3yb9r27l2niwv8gv0dbds9dzrc298dfmal";
24+ sha256 = "1pgm0zsylbmz1r96q4n3rfi0h3pn4jss2yfs83z0yxa90nmsxhv3";
25− propagatedBuildInputs = [ click ];
27+ propagatedBuildInputs = [
27 checkInputs = [
31 checkInputs = [
28 pytestCheckHook
32 pytestCheckHook
30 pytest-xdist
33 pytest-xdist
31 pytest-sugar
34 pytest-sugar
32 shellingham
35 shellingham
@@ -35,18 +38,17 @@ buildPythonPackage rec {
38− pytestFlagsArray = [
41+
39− "--ignore=tests/test_completion/test_completion.py"
42+ preCheck = ''
40− "--ignore=tests/test_completion/test_completion_install.py"
43+ export HOME=$(mktemp -d);
46+ pythonImportsCheck = [ "typer" ];
43 meta = with lib; {
48 meta = with lib; {
49+ description = "Python library for building CLI applications";
44 homepage = "https://typer.tiangolo.com/";
50 homepage = "https://typer.tiangolo.com/";
45− description = "Typer, build great CLIs. Easy to code. Based on Python type hints.";
46 license = licenses.mit;
51 license = licenses.mit;
47− # is incompatible with click8
48− # https://github.com/tiangolo/typer/issues/280
50− maintainers = [ maintainers.winpat ];
52+ maintainers = with maintainers; [ winpat ];