beanhub-import: init at 0.1.5

This commit is contained in:
Fang-Pen Lin 2024-05-10 18:41:01 +00:00
parent b29fd82b11
commit 9ec842fbf4
No known key found for this signature in database
GPG Key ID: 2A269964AD292131
2 changed files with 61 additions and 0 deletions

View File

@ -0,0 +1,59 @@
{ lib
, fetchFromGitHub
, buildPythonPackage
, pythonOlder
, pytestCheckHook
, beancount-black
, beancount-parser
, beanhub-extract
, jinja2
, poetry-core
, pydantic
, pytz
, pyyaml
}:
buildPythonPackage rec {
pname = "beanhub-import";
version = "0.1.5";
pyproject = true;
disabled = pythonOlder "3.9";
src = fetchFromGitHub {
owner = "LaunchPlatform";
repo = "beanhub-import";
rev = "refs/tags/${version}";
hash = "sha256-BH+d7cKC83b7T2Z1Xlwpsv3KACo1vDn6v65tElhir/c=";
};
build-system = [
poetry-core
];
dependencies = [
beancount-black
beancount-parser
beanhub-extract
jinja2
pydantic
pytz
pyyaml
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"beanhub_import"
];
meta = {
description = "Declarative idempotent rule-based Beancount transaction import engine in Python";
homepage = "https://github.com/LaunchPlatform/beanhub-import/";
changelog = "https://github.com/LaunchPlatform/beanhub-import/releases/tag/${version}";
license = with lib.licenses; [ mit ];
maintainers = with lib.maintainers; [ fangpen ];
};
}

View File

@ -1465,6 +1465,8 @@ self: super: with self; {
beanhub-extract = callPackage ../development/python-modules/beanhub-extract { };
beanhub-import = callPackage ../development/python-modules/beanhub-import { };
beanstalkc = callPackage ../development/python-modules/beanstalkc { };
beartype = callPackage ../development/python-modules/beartype { };