python312Packages.tyro: init at 0.9.19
Co-authored-by: Gaétan Lepage <33058747+GaetanLepage@users.noreply.github.com> Co-authored-by: OTABI Tomoya <tomoya.otabi@gmail.com>
This commit is contained in:
committed by
Gaetan Lepage
co-authored by
Gaétan Lepage
OTABI Tomoya
parent
b457279ba3
commit
4dfea7e0c0
@@ -0,0 +1,69 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
|
||||
# build-system
|
||||
hatchling,
|
||||
|
||||
# dependencies
|
||||
docstring-parser,
|
||||
rich,
|
||||
shtab,
|
||||
typeguard,
|
||||
typing-extensions,
|
||||
|
||||
# tests
|
||||
attrs,
|
||||
flax,
|
||||
jax,
|
||||
ml-collections,
|
||||
omegaconf,
|
||||
pydantic,
|
||||
pytestCheckHook,
|
||||
torch,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "tyro";
|
||||
version = "0.9.19";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "brentyi";
|
||||
repo = "tyro";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-A1Vplc84Xy8TufqmklPUzIdgiPpFcIjqV0eUgdKmYRM=";
|
||||
};
|
||||
|
||||
build-system = [ hatchling ];
|
||||
|
||||
dependencies = [
|
||||
docstring-parser
|
||||
rich
|
||||
shtab
|
||||
typeguard
|
||||
typing-extensions
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
attrs
|
||||
flax
|
||||
jax
|
||||
ml-collections
|
||||
omegaconf
|
||||
pydantic
|
||||
pytestCheckHook
|
||||
torch
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "tyro" ];
|
||||
|
||||
meta = {
|
||||
description = "CLI interfaces & config objects, from types";
|
||||
homepage = "https://github.com/brentyi/tyro";
|
||||
changelog = "https://github.com/brentyi/tyro/releases/tag/v${version}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ hoh ];
|
||||
};
|
||||
}
|
||||
@@ -18277,6 +18277,8 @@ self: super: with self; {
|
||||
|
||||
typst = callPackage ../development/python-modules/typst { };
|
||||
|
||||
tyro = callPackage ../development/python-modules/tyro { };
|
||||
|
||||
tzdata = callPackage ../development/python-modules/tzdata { };
|
||||
|
||||
tzlocal = callPackage ../development/python-modules/tzlocal { };
|
||||
|
||||
Reference in New Issue
Block a user