Something went wrong. Try again.
lol
Something went wrong. Try again.
1.9 kB · 112 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113{ lib, fetchFromGitHub, buildPythonPackage, hatchling,
# dependencies beancount-black, beancount-parser, beanhub-forms, beanhub-import, beanhub-inbox, click, fastapi, jinja2, pydantic-settings, pydantic, pyyaml, rich, starlette-wtf, uvicorn,
# optional-dependencies attrs, cryptography, httpx, pynacl, python-dateutil, tomli-w, tomli,
# tests pytest-asyncio, pytest-factoryboy, pytest-httpx, pytest-mock, pytestCheckHook,}:
buildPythonPackage rec { pname = "beanhub-cli"; version = "3.0.1"; pyproject = true;
src = fetchFromGitHub { owner = "LaunchPlatform"; repo = "beanhub-cli"; tag = version; hash = "sha256-hreVGsptCGW6L3rj6Ec8+lefZWpQ4tZtUEJI+NxTO7w="; };
pythonRelaxDeps = [ "rich" ];
build-system = [ hatchling ];
dependencies = [ beancount-black beancount-parser beanhub-forms beanhub-import beanhub-inbox click fastapi jinja2 pydantic pydantic-settings pyyaml rich starlette-wtf uvicorn ] ++ lib.concatAttrValues optional-dependencies;
optional-dependencies = { login = [ attrs httpx python-dateutil tomli tomli-w ]; connect = [ attrs cryptography httpx pynacl python-dateutil tomli tomli-w ]; };
nativeCheckInputs = [ pytest-asyncio pytest-factoryboy pytest-httpx pytest-mock pytestCheckHook ] ++ lib.concatAttrValues optional-dependencies;
pythonImportsCheck = [ "beanhub_cli" ];
meta = { description = "Command line tools for BeanHub or Beancount users"; homepage = "https://github.com/LaunchPlatform/beanhub-cli/"; changelog = "https://github.com/LaunchPlatform/beanhub-cli/releases/tag/${src.tag}"; license = with lib.licenses; [ mit ]; maintainers = with lib.maintainers; [ fangpen ]; mainProgram = "bh"; };}