Merge pull request #136159 from fabaff/bump-typer

python3Packages.typer: 0.3.2 -> 0.4.0

authored by davidak and committed by GitHub f8a2cce8 d24e7240

+16 -14
+16 -14
pkgs/development/python-modules/typer/default.nix
··· 4 4 , click 5 5 , pytestCheckHook 6 6 , shellingham 7 - , pytest-cov 8 7 , pytest-xdist 9 8 , pytest-sugar 10 9 , coverage 11 10 , mypy 12 11 , black 13 12 , isort 13 + , pythonOlder 14 14 }: 15 15 16 16 buildPythonPackage rec { 17 17 pname = "typer"; 18 - version = "0.3.2"; 18 + version = "0.4.0"; 19 + 20 + disabled = pythonOlder "3.6"; 19 21 20 22 src = fetchPypi { 21 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 31 checkInputs = [ 28 32 pytestCheckHook 29 - pytest-cov 30 33 pytest-xdist 31 34 pytest-sugar 32 35 shellingham ··· 35 38 black 36 39 isort 37 40 ]; 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" ]; 42 47 43 48 meta = with lib; { 49 + description = "Python library for building CLI applications"; 44 50 homepage = "https://typer.tiangolo.com/"; 45 - description = "Typer, build great CLIs. Easy to code. Based on Python type hints."; 46 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 }