python312Packages.cyclopts: init at 2.6.2

Module to create CLIs based on Python type hints

https://github.com/BrianPugh/cyclopts
This commit is contained in:
Fabian Affolter 2024-06-06 00:13:44 +02:00
parent 33ce263359
commit cede15570a
2 changed files with 64 additions and 0 deletions

View File

@ -0,0 +1,62 @@
{
lib,
attrs,
buildPythonPackage,
docstring-parser,
fetchFromGitHub,
importlib-metadata,
poetry-core,
poetry-dynamic-versioning,
pydantic,
pytest-mock,
pytestCheckHook,
pythonOlder,
rich,
rich-rst,
typing-extensions,
}:
buildPythonPackage rec {
pname = "cyclopts";
version = "2.6.2";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "BrianPugh";
repo = "cyclopts";
rev = "refs/tags/v${version}";
hash = "sha256-GWUD9Qu2EKrT7nwlmSpJ31LWSvv6mASxsXGznumusdw=";
};
build-system = [
poetry-core
poetry-dynamic-versioning
];
dependencies = [
attrs
docstring-parser
importlib-metadata
rich
rich-rst
typing-extensions
];
nativeCheckInputs = [
pydantic
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "cyclopts" ];
meta = with lib; {
description = "Module to create CLIs based on Python type hints";
homepage = "https://github.com/BrianPugh/cyclopts";
changelog = "https://github.com/BrianPugh/cyclopts/releases/tag/v${version}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}

View File

@ -2672,6 +2672,8 @@ self: super: with self; {
cyclonedx-python-lib = callPackage ../development/python-modules/cyclonedx-python-lib { };
cyclopts = callPackage ../development/python-modules/cyclopts { };
cymem = callPackage ../development/python-modules/cymem { };
cypari2 = callPackage ../development/python-modules/cypari2 { };