Something went wrong. Try again.
Nix Packages collection & NixOS github.com/NixOS/nixpkgs
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104{ lib, stdenv, attrs, buildPythonPackage, docstring-parser, fetchFromGitHub, bash, fish, hatch-vcs, hatchling, markdown, mkdocs, pexpect, pydantic, pymdown-extensions, pytest-cov-stub, pytest-mock, pytestCheckHook, pyyaml, rich, rich-rst, sphinx, syrupy, trio, zsh,}:
buildPythonPackage (finalAttrs: { pname = "cyclopts"; version = "4.25.3"; pyproject = true;
src = fetchFromGitHub { owner = "BrianPugh"; repo = "cyclopts"; tag = "v${finalAttrs.version}"; hash = "sha256-BlxlOegVi5V4XS1Mm52xpDvLoqCwC9IYEAkgNbTesfQ="; };
pythonRelaxDeps = [ "rich-rst" ];
build-system = [ hatchling hatch-vcs ];
dependencies = [ attrs docstring-parser rich rich-rst ];
optional-dependencies = { trio = [ trio ]; yaml = [ pyyaml ]; mkdocs = [ mkdocs markdown pymdown-extensions ]; };
nativeCheckInputs = [ pexpect pydantic pytest-cov-stub pytest-mock pytestCheckHook syrupy
# integrations sphinx bash fish zsh ] ++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies);
pythonImportsCheck = [ "cyclopts" ];
disabledTests = [ # Building docs "build_succeeds" # timeouts under heavy concurrency "test_behavior[zsh-root-subcommands]" "test_behavior[zsh-subcommand-prefix]" "test_path_completion_action" "test_requires_equals_eq_form_value_completion" ];
meta = { description = "Module to create CLIs based on Python type hints"; homepage = "https://github.com/BrianPugh/cyclopts"; changelog = "https://github.com/BrianPugh/cyclopts/releases/tag/${finalAttrs.src.tag}"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ fab PerchunPak ]; };})