From 3c190ee25a519fb39901ca2b8a69d1e062f5022f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 30 Aug 2021 11:49:54 +0200 Subject: [PATCH] python3Packages.typer: 0.3.2 -> 0.4.0 --- .../python-modules/typer/default.nix | 30 ++++++++++--------- 1 file changed, 16 insertions(+), 14 deletions(-) diff --git a/pkgs/development/python-modules/typer/default.nix b/pkgs/development/python-modules/typer/default.nix index 620ec7ce6892..bc55e3ab8ff7 100644 --- a/pkgs/development/python-modules/typer/default.nix +++ b/pkgs/development/python-modules/typer/default.nix @@ -4,29 +4,32 @@ , click , pytestCheckHook , shellingham -, pytest-cov , pytest-xdist , pytest-sugar , coverage , mypy , black , isort +, pythonOlder }: buildPythonPackage rec { pname = "typer"; - version = "0.3.2"; + version = "0.4.0"; + + disabled = pythonOlder "3.6"; src = fetchPypi { inherit pname version; - sha256 = "00v3h63dq8yxahp9vg3yb9r27l2niwv8gv0dbds9dzrc298dfmal"; + sha256 = "1pgm0zsylbmz1r96q4n3rfi0h3pn4jss2yfs83z0yxa90nmsxhv3"; }; - propagatedBuildInputs = [ click ]; + propagatedBuildInputs = [ + click + ]; checkInputs = [ pytestCheckHook - pytest-cov pytest-xdist pytest-sugar shellingham @@ -35,18 +38,17 @@ buildPythonPackage rec { black isort ]; - pytestFlagsArray = [ - "--ignore=tests/test_completion/test_completion.py" - "--ignore=tests/test_completion/test_completion_install.py" - ]; + + preCheck = '' + export HOME=$(mktemp -d); + ''; + + pythonImportsCheck = [ "typer" ]; meta = with lib; { + description = "Python library for building CLI applications"; homepage = "https://typer.tiangolo.com/"; - description = "Typer, build great CLIs. Easy to code. Based on Python type hints."; license = licenses.mit; - # is incompatible with click8 - # https://github.com/tiangolo/typer/issues/280 - broken = true; - maintainers = [ maintainers.winpat ]; + maintainers = with maintainers; [ winpat ]; }; }