beanhub-cli: init at 1.1.3

This commit is contained in:
Fang-Pen Lin
2024-05-14 00:48:52 +00:00
parent 9438b41029
commit 34225aa069
3 changed files with 82 additions and 0 deletions
@@ -0,0 +1,78 @@
{ 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";
version = "1.1.3";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "LaunchPlatform";
repo = "beanhub-cli";
rev = "refs/tags/${version}";
hash = "sha256-vYBbaUVJAs+aIp6aQpJb62DEDxe/sQTzgOkjPq6ADoc=";
};
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 ];
};
}
+2
View File
@@ -36260,6 +36260,8 @@ with pkgs;
beancount-black = with python3.pkgs; toPythonApplication beancount-black;
beanhub-cli = with python3.pkgs; toPythonApplication beanhub-cli;
bean-add = callPackage ../applications/office/beancount/bean-add.nix { };
bench = haskell.lib.compose.justStaticExecutables haskellPackages.bench;
+2
View File
@@ -1463,6 +1463,8 @@ self: super: with self; {
beancount-docverif = callPackage ../development/python-modules/beancount-docverif { };
beanhub-cli = callPackage ../development/python-modules/beanhub-cli { };
beanhub-extract = callPackage ../development/python-modules/beanhub-extract { };
beanhub-forms = callPackage ../development/python-modules/beanhub-forms { };