python3Packages.typer-slim: expose from typer package (#436978)
This commit is contained in:
@@ -21,10 +21,13 @@
|
||||
pytestCheckHook,
|
||||
writableTmpDirAsHomeHook,
|
||||
procps,
|
||||
|
||||
# typer or typer-slim
|
||||
package ? "typer",
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "typer";
|
||||
pname = package;
|
||||
version = "0.16.0";
|
||||
pyproject = true;
|
||||
|
||||
@@ -35,15 +38,17 @@ buildPythonPackage rec {
|
||||
hash = "sha256-WB9PIxagTHutfk3J+mNTVK8bC7TMDJquu3GLBQgaras=";
|
||||
};
|
||||
|
||||
env.TIANGOLO_BUILD_PACKAGE = package;
|
||||
|
||||
build-system = [ pdm-backend ];
|
||||
|
||||
dependencies = [
|
||||
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;
|
||||
# typer includes the standard optional by default
|
||||
# https://github.com/tiangolo/typer/blob/0.12.3/pyproject.toml#L71-L72
|
||||
++ lib.optionals (package == "typer") optional-dependencies.standard;
|
||||
|
||||
optional-dependencies = {
|
||||
standard = [
|
||||
@@ -52,6 +57,8 @@ buildPythonPackage rec {
|
||||
];
|
||||
};
|
||||
|
||||
doCheck = package == "typer"; # tests expect standard dependencies
|
||||
|
||||
nativeCheckInputs = [
|
||||
coverage # execs coverage in tests
|
||||
pytest-xdist
|
||||
|
||||
@@ -18683,6 +18683,8 @@ self: super: with self; {
|
||||
|
||||
typer-shell = callPackage ../development/python-modules/typer-shell { };
|
||||
|
||||
typer-slim = self.typer.override { package = "typer-slim"; };
|
||||
|
||||
types-aiobotocore = callPackage ../development/python-modules/types-aiobotocore { };
|
||||
|
||||
inherit (callPackage ../development/python-modules/types-aiobotocore-packages { })
|
||||
|
||||
Reference in New Issue
Block a user