Skip to content

Commit

Permalink
python312Packages.cyclopts: init at 2.6.2
Browse files Browse the repository at this point in the history
Module to create CLIs based on Python type hints

https://github.com/BrianPugh/cyclopts
  • Loading branch information
fabaff committed Jun 5, 2024
1 parent 33ce263 commit cede155
Show file tree
Hide file tree
Showing 2 changed files with 64 additions and 0 deletions.
62 changes: 62 additions & 0 deletions pkgs/development/python-modules/cyclopts/default.nix
Original file line number Diff line number Diff line change
@@ -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 ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 { };
Expand Down

0 comments on commit cede155

Please sign in to comment.