Merge pull request #325223 from mweinelt/typer-deps

python312Packages.typer: include optional dependencies
This commit is contained in:
Martin Weinelt 2024-07-18 18:54:53 +02:00 committed by GitHub
commit b907d82797
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
15 changed files with 20 additions and 27 deletions

View File

@ -50,8 +50,7 @@ python.pkgs.buildPythonApplication rec {
tenacity
typer
watchdog
]
++ typer.optional-dependencies.all;
];
passthru.optional-dependencies = with python3.pkgs; {
aws = [ boto3 ];

View File

@ -32,7 +32,7 @@ buildPythonPackage rec {
rich
shellingham
typer
] ++ typer.optional-dependencies.all;
];
# No tests available
doCheck = false;

View File

@ -30,8 +30,7 @@ python3.pkgs.buildPythonApplication rec {
pytenable
typer
validators
]
++ typer.optional-dependencies.all;
];
pythonImportsCheck = [ "audiness" ];

View File

@ -30,8 +30,7 @@ python3.pkgs.buildPythonApplication rec {
pycups
typer
validators
]
++ typer.optional-dependencies.all;
];
# Project has no tests
doCheck = false;

View File

@ -40,7 +40,7 @@ python3.pkgs.buildPythonPackage rec {
pydantic_1
slack-sdk
typer
] ++ typer.optional-dependencies.all;
];
nativeCheckInputs = with python3.pkgs; [
pytestCheckHook

View File

@ -31,7 +31,7 @@ python3.pkgs.buildPythonApplication rec {
scapy
typer
typing-extensions
] ++ typer.optional-dependencies.all);
]);
# Project has no tests
doCheck = false;

View File

@ -20,7 +20,7 @@ python3Packages.buildPythonApplication rec {
dependencies = with python3Packages; [
questionary
typer
] ++ typer.optional-dependencies.all;
];
build-system = [ python3Packages.poetry-core ];

View File

@ -123,7 +123,7 @@ buildPythonPackage rec {
uvicorn
typer
tomlkit
] ++ typer.passthru.optional-dependencies.all;
];
passthru.optional-dependencies.oauth = [
authlib

View File

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

View File

@ -46,7 +46,7 @@ buildPythonPackage rec {
prompt-toolkit
pygments
click
] ++ typer.optional-dependencies.all;
];
serial = [ pyserial ];
};

View File

@ -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 = [

View File

@ -39,7 +39,7 @@ buildPythonPackage rec {
types-docutils
pydantic
typer
] ++ typer.optional-dependencies.all;
];
nativeCheckInputs = [ pytestCheckHook ];

View File

@ -42,7 +42,7 @@ buildPythonPackage rec {
torch
tqdm
typer
] ++ typer.passthru.optional-dependencies.all;
];
nativeCheckInputs = [
pytestCheckHook

View File

@ -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);

View File

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