2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildPythonPackage,
|
|
|
|
pythonOlder,
|
|
|
|
pytestCheckHook,
|
|
|
|
beancount-black,
|
|
|
|
beancount-parser,
|
|
|
|
beanhub-extract,
|
|
|
|
jinja2,
|
|
|
|
poetry-core,
|
|
|
|
pydantic,
|
|
|
|
pytz,
|
|
|
|
pyyaml,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "beanhub-import";
|
2024-09-26 11:04:55 +00:00
|
|
|
version = "1.0.3";
|
2024-06-05 15:53:02 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "LaunchPlatform";
|
|
|
|
repo = "beanhub-import";
|
|
|
|
rev = "refs/tags/${version}";
|
2024-09-26 11:04:55 +00:00
|
|
|
hash = "sha256-6Y1gYAi8A6H0a0vj2avWxGS7hvjrvLBUS+LsgvY4sZo=";
|
2024-06-05 15:53:02 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|