Something went wrong. Try again.
lol
Something went wrong. Try again.
1.6 kB · 87 lines
Nix
at master
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788{ lib, attrs, buildPythonPackage, docstring-parser, fetchFromGitHub, hatch-vcs, hatchling, markdown, mkdocs, pydantic, pymdown-extensions, pytest-mock, pytestCheckHook, pyyaml, rich-rst, rich, sphinx, syrupy, trio,}:
buildPythonPackage (finalAttrs: { pname = "cyclopts"; version = "4.10.2"; pyproject = true;
src = fetchFromGitHub { owner = "BrianPugh"; repo = "cyclopts"; tag = "v${finalAttrs.version}"; hash = "sha256-vlsjhBfI08QMQ8FzM+BogAXbukHhnr4aD8ZmZVicCv0="; };
build-system = [ hatchling hatch-vcs ];
dependencies = [ attrs docstring-parser rich rich-rst ];
optional-dependencies = { trio = [ trio ]; yaml = [ pyyaml ]; docs = [ sphinx ]; mkdocs = [ mkdocs markdown pymdown-extensions ]; };
nativeCheckInputs = [ pydantic pytest-mock pytestCheckHook syrupy ] ++ lib.flatten (builtins.attrValues finalAttrs.passthru.optional-dependencies);
pythonImportsCheck = [ "cyclopts" ];
disabledTests = [ # Test requires bash "test_positional_not_treated_as_command" # Building docs "build_succeeds" ];
disabledTestPaths = [ # Tests requires sphinx "tests/test_sphinx_ext.py" ];
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 ]; };})