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
|
, click
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, shellingham
|
, shellingham
|
||||||
, pytest-cov
|
|
||||||
, pytest-xdist
|
, pytest-xdist
|
||||||
, pytest-sugar
|
, pytest-sugar
|
||||||
, coverage
|
, coverage
|
||||||
, mypy
|
, mypy
|
||||||
, black
|
, black
|
||||||
, isort
|
, isort
|
||||||
|
, pythonOlder
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "typer";
|
pname = "typer";
|
||||||
version = "0.3.2";
|
version = "0.4.0";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
sha256 = "00v3h63dq8yxahp9vg3yb9r27l2niwv8gv0dbds9dzrc298dfmal";
|
sha256 = "1pgm0zsylbmz1r96q4n3rfi0h3pn4jss2yfs83z0yxa90nmsxhv3";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ click ];
|
propagatedBuildInputs = [
|
||||||
|
click
|
||||||
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
pytest-cov
|
|
||||||
pytest-xdist
|
pytest-xdist
|
||||||
pytest-sugar
|
pytest-sugar
|
||||||
shellingham
|
shellingham
|
||||||
|
@ -35,18 +38,17 @@ buildPythonPackage rec {
|
||||||
black
|
black
|
||||||
isort
|
isort
|
||||||
];
|
];
|
||||||
pytestFlagsArray = [
|
|
||||||
"--ignore=tests/test_completion/test_completion.py"
|
preCheck = ''
|
||||||
"--ignore=tests/test_completion/test_completion_install.py"
|
export HOME=$(mktemp -d);
|
||||||
];
|
'';
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "typer" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
description = "Python library for building CLI applications";
|
||||||
homepage = "https://typer.tiangolo.com/";
|
homepage = "https://typer.tiangolo.com/";
|
||||||
description = "Typer, build great CLIs. Easy to code. Based on Python type hints.";
|
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
# is incompatible with click8
|
maintainers = with maintainers; [ winpat ];
|
||||||
# https://github.com/tiangolo/typer/issues/280
|
|
||||||
broken = true;
|
|
||||||
maintainers = [ maintainers.winpat ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue