python3Packages.typer: 0.3.2 -> 0.4.0
This commit is contained in:
parent
9e8fcb0184
commit
3c190ee25a
1 changed files with 16 additions and 14 deletions
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue