Merge pull request #136159 from fabaff/bump-typer

python3Packages.typer: 0.3.2 -> 0.4.0
This commit is contained in:
davidak 2021-08-30 19:14:08 +02:00 committed by GitHub
commit f8a2cce87c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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 ];
};
}