1{
2 lib,
3 beancount,
4 beautifulsoup4,
5 buildPythonPackage,
6 chardet,
7 click,
8 fetchFromGitHub,
9 lxml,
10 petl,
11 python-magic,
12 pytestCheckHook,
13 setuptools,
14}:
15
16buildPythonPackage rec {
17 pname = "beangulp";
18 version = "0.2.0";
19 pyproject = true;
20
21 src = fetchFromGitHub {
22 owner = "beancount";
23 repo = "beangulp";
24 tag = "v${version}";
25 hash = "sha256-h7xLHwEyS+tOI7v6Erp12VfVnxOf4930++zghhC3in4=";
26 };
27
28 build-system = [ setuptools ];
29
30 dependencies = [
31 beancount
32 beautifulsoup4
33 chardet
34 click
35 lxml
36 python-magic
37 ];
38
39 nativeCheckInputs = [
40 petl
41 pytestCheckHook
42 ];
43
44 pythonImportsCheck = [
45 "beangulp"
46 ];
47
48 meta = {
49 homepage = "https://github.com/beancount/beangulp";
50 description = "Importers framework for Beancount";
51 longDescription = ''
52 Beangulp provides a framework for importing transactions into a Beancoount
53 ledger from account statements and other documents and for managing documents.
54 '';
55 license = lib.licenses.gpl2Only;
56 maintainers = with lib.maintainers; [ alapshin ];
57 };
58}