python312Packages.typer: include standard optional
Typer specifies the standard optional-dependencies package list, but then due to internal tooling includes it by default in Require-Dist. https://github.com/tiangolo/typer/blob/0.12.3/pyproject.toml#L71-L72 This is in line with changes that happened in typer 0.12.1 https://github.com/tiangolo/typer/releases/tag/0.12.1
This commit is contained in:
parent
8f3b38daf2
commit
3d12611232
@ -50,8 +50,7 @@ python.pkgs.buildPythonApplication rec {
|
||||
tenacity
|
||||
typer
|
||||
watchdog
|
||||
]
|
||||
++ typer.optional-dependencies.all;
|
||||
];
|
||||
|
||||
passthru.optional-dependencies = with python3.pkgs; {
|
||||
aws = [ boto3 ];
|
||||
|
@ -32,7 +32,7 @@ buildPythonPackage rec {
|
||||
rich
|
||||
shellingham
|
||||
typer
|
||||
] ++ typer.optional-dependencies.all;
|
||||
];
|
||||
|
||||
# No tests available
|
||||
doCheck = false;
|
||||
|
@ -30,8 +30,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
pytenable
|
||||
typer
|
||||
validators
|
||||
]
|
||||
++ typer.optional-dependencies.all;
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "audiness" ];
|
||||
|
||||
|
@ -30,8 +30,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
pycups
|
||||
typer
|
||||
validators
|
||||
]
|
||||
++ typer.optional-dependencies.all;
|
||||
];
|
||||
|
||||
# Project has no tests
|
||||
doCheck = false;
|
||||
|
@ -40,7 +40,7 @@ python3.pkgs.buildPythonPackage rec {
|
||||
pydantic_1
|
||||
slack-sdk
|
||||
typer
|
||||
] ++ typer.optional-dependencies.all;
|
||||
];
|
||||
|
||||
nativeCheckInputs = with python3.pkgs; [
|
||||
pytestCheckHook
|
||||
|
@ -31,7 +31,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
scapy
|
||||
typer
|
||||
typing-extensions
|
||||
] ++ typer.optional-dependencies.all);
|
||||
]);
|
||||
|
||||
# Project has no tests
|
||||
doCheck = false;
|
||||
|
@ -20,7 +20,7 @@ python3Packages.buildPythonApplication rec {
|
||||
dependencies = with python3Packages; [
|
||||
questionary
|
||||
typer
|
||||
] ++ typer.optional-dependencies.all;
|
||||
];
|
||||
|
||||
build-system = [ python3Packages.poetry-core ];
|
||||
|
||||
|
@ -123,7 +123,7 @@ buildPythonPackage rec {
|
||||
uvicorn
|
||||
typer
|
||||
tomlkit
|
||||
] ++ typer.passthru.optional-dependencies.all;
|
||||
];
|
||||
|
||||
passthru.optional-dependencies.oauth = [
|
||||
authlib
|
||||
|
@ -2,15 +2,12 @@
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
hatch-vcs,
|
||||
importlib-metadata,
|
||||
lib,
|
||||
manifestoo-core,
|
||||
nix-update-script,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
textual,
|
||||
typer,
|
||||
typing-extensions,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
@ -32,9 +29,7 @@ buildPythonPackage rec {
|
||||
manifestoo-core
|
||||
textual
|
||||
typer
|
||||
]
|
||||
++ typer.passthru.optional-dependencies.all
|
||||
++ lib.optionals (pythonOlder "3.8") [ importlib-metadata ];
|
||||
];
|
||||
|
||||
passthru.updateScript = nix-update-script { };
|
||||
|
||||
|
@ -46,7 +46,7 @@ buildPythonPackage rec {
|
||||
prompt-toolkit
|
||||
pygments
|
||||
click
|
||||
] ++ typer.optional-dependencies.all;
|
||||
];
|
||||
serial = [ pyserial ];
|
||||
};
|
||||
|
||||
|
@ -71,7 +71,7 @@ buildPythonPackage rec {
|
||||
pyjwt
|
||||
pytz
|
||||
typer
|
||||
] ++ typer.optional-dependencies.all ++ lib.optionals (pythonOlder "3.11") [ async-timeout ];
|
||||
] ++ lib.optionals (pythonOlder "3.11") [ async-timeout ];
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
shell = [
|
||||
|
@ -39,7 +39,7 @@ buildPythonPackage rec {
|
||||
types-docutils
|
||||
pydantic
|
||||
typer
|
||||
] ++ typer.optional-dependencies.all;
|
||||
];
|
||||
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
|
@ -42,7 +42,7 @@ buildPythonPackage rec {
|
||||
torch
|
||||
tqdm
|
||||
typer
|
||||
] ++ typer.passthru.optional-dependencies.all;
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
|
@ -33,11 +33,12 @@ buildPythonPackage rec {
|
||||
propagatedBuildInputs = [
|
||||
click
|
||||
typing-extensions
|
||||
];
|
||||
# Build includes the standard optional by default
|
||||
# https://github.com/tiangolo/typer/blob/0.12.3/pyproject.toml#L71-L72
|
||||
] ++ optional-dependencies.standard;
|
||||
|
||||
passthru.optional-dependencies = {
|
||||
all = [
|
||||
colorama
|
||||
optional-dependencies = {
|
||||
standard = [
|
||||
shellingham
|
||||
rich
|
||||
];
|
||||
@ -48,7 +49,7 @@ buildPythonPackage rec {
|
||||
pytest-sugar
|
||||
pytest-xdist
|
||||
pytestCheckHook
|
||||
] ++ passthru.optional-dependencies.all;
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d);
|
||||
|
@ -28,7 +28,7 @@ python3.pkgs.buildPythonApplication rec {
|
||||
markdown
|
||||
python-frontmatter
|
||||
typer
|
||||
] ++ typer.optional-dependencies.all;
|
||||
];
|
||||
|
||||
# No tests available on Pypi and there is only a failing version assertion test in the repo.
|
||||
doCheck = false;
|
||||
|
Loading…
Reference in New Issue
Block a user