mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
Merge pull request #136159 from fabaff/bump-typer
python3Packages.typer: 0.3.2 -> 0.4.0
This commit is contained in:
commit
f8a2cce87c
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