git.iko.soy/typeable/nixpkgs
on master help sign in
Merge pull request #136159 from fabaff/bump-typer
f8a2ccedavidak
pkgs/development/python-modules/typer/default.nix+16−14
@@ -4,29 +4,32 @@
4, click
4, click
5, pytestCheckHook
5, pytestCheckHook
6, shellingham
6, shellingham
7−, pytest-cov
8, pytest-xdist
7, pytest-xdist
9, pytest-sugar
8, pytest-sugar
10, coverage
9, coverage
11, mypy
10, mypy
12, black
11, black
13, isort
12, isort
13+, pythonOlder
14}:
14}:
15
15
16buildPythonPackage rec {
16buildPythonPackage rec {
17 pname = "typer";
17 pname = "typer";
18− version = "0.3.2";
18+ version = "0.4.0";
19+
20+ disabled = pythonOlder "3.6";
19
21
20 src = fetchPypi {
22 src = fetchPypi {
21 inherit pname version;
23 inherit pname version;
22− sha256 = "00v3h63dq8yxahp9vg3yb9r27l2niwv8gv0dbds9dzrc298dfmal";
24+ sha256 = "1pgm0zsylbmz1r96q4n3rfi0h3pn4jss2yfs83z0yxa90nmsxhv3";
23 };
25 };
24
26
25− propagatedBuildInputs = [ click ];
27+ propagatedBuildInputs = [
28+ click
29+ ];
26
30
27 checkInputs = [
31 checkInputs = [
28 pytestCheckHook
32 pytestCheckHook
29− pytest-cov
30 pytest-xdist
33 pytest-xdist
31 pytest-sugar
34 pytest-sugar
32 shellingham
35 shellingham
@@ -35,18 +38,17 @@ buildPythonPackage rec {
35 black
38 black
36 isort
39 isort
37 ];
40 ];
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);
41− ];
44+ '';
45+
46+ pythonImportsCheck = [ "typer" ];
42
47
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
49− broken = true;
50− maintainers = [ maintainers.winpat ];
52+ maintainers = with maintainers; [ winpat ];
51 };
53 };
52}
54}