2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
pytestCheckHook,
|
|
|
|
beancount-black,
|
|
|
|
beancount-parser,
|
|
|
|
beanhub-forms,
|
|
|
|
beanhub-import,
|
|
|
|
click,
|
|
|
|
fastapi,
|
|
|
|
httpx,
|
|
|
|
jinja2,
|
|
|
|
poetry-core,
|
|
|
|
pydantic,
|
|
|
|
pydantic-core,
|
|
|
|
pydantic-settings,
|
|
|
|
pytz,
|
|
|
|
pyyaml,
|
|
|
|
rich,
|
|
|
|
starlette-wtf,
|
|
|
|
uvicorn,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "beanhub-cli";
|
2024-07-27 06:49:29 +00:00
|
|
|
version = "1.2.3";
|
2024-06-05 15:53:02 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.10";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LaunchPlatform";
|
|
|
|
repo = "beanhub-cli";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-07-27 06:49:29 +00:00
|
|
|
hash = "sha256-oHlI3hloquD86fHr3AgwW5SqKxUw2gphP76wi6mCy44=";
|
2024-06-05 15:53:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
build-system = [ poetry-core ];
|
|
|
|
|
|
|
|
dependencies = [
|
|
|
|
beancount-black
|
|
|
|
beancount-parser
|
|
|
|
beanhub-forms
|
|
|
|
beanhub-import
|
|
|
|
click
|
|
|
|
fastapi
|
|
|
|
jinja2
|
|
|
|
pydantic
|
|
|
|
pydantic-core
|
|
|
|
pydantic-settings
|
|
|
|
pytz
|
|
|
|
pyyaml
|
|
|
|
rich
|
|
|
|
starlette-wtf
|
|
|
|
uvicorn
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
httpx
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "beanhub_cli" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Command line tools for BeanHub or Beancount users";
|
|
|
|
mainProgram = "bh";
|
|
|
|
homepage = "https://github.com/LaunchPlatform/beanhub-cli/";
|
|
|
|
changelog = "https://github.com/LaunchPlatform/beanhub-cli/releases/tag/${version}";
|
|
|
|
license = with lib.licenses; [ mit ];
|
|
|
|
maintainers = with lib.maintainers; [ fangpen ];
|
|
|
|
};
|
|
|
|
}
|