mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-01 02:23:54 +00:00
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:
parent
33ce263359
commit
cede15570a
62
pkgs/development/python-modules/cyclopts/default.nix
Normal file
62
pkgs/development/python-modules/cyclopts/default.nix
Normal 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 ];
|
||||
};
|
||||
}
|
@ -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 { };
|
||||
|
Loading…
Reference in New Issue
Block a user