blob: 7097c45356a1962010e15e5069f5147b19a28ce8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
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 ];
};
}
|