1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 pythonOlder,
6 pytestCheckHook,
7 iso8601,
8 poetry-core,
9 pytest-lazy-fixture,
10 pytz,
11}:
12
13buildPythonPackage rec {
14 pname = "beanhub-extract";
15 version = "0.1.3";
16 pyproject = true;
17
18 disabled = pythonOlder "3.9";
19
20 src = fetchFromGitHub {
21 owner = "LaunchPlatform";
22 repo = "beanhub-extract";
23 rev = "refs/tags/${version}";
24 hash = "sha256-Uw9bSVOpiIALkgA77OrqAcDWcEafVSnp4iILa4Jkykc=";
25 };
26
27 build-system = [ poetry-core ];
28
29 dependencies = [
30 iso8601
31 pytz
32 ];
33
34 nativeCheckInputs = [
35 pytest-lazy-fixture
36 pytestCheckHook
37 ];
38
39 pythonImportsCheck = [ "beanhub_extract" ];
40
41 meta = {
42 description = "Simple library for extracting all kind of bank account transaction export files, mostly for beanhub-import to ingest and generate transactions";
43 homepage = "https://github.com/LaunchPlatform/beanhub-extract/";
44 changelog = "https://github.com/LaunchPlatform/beanhub-extract/releases/tag/${version}";
45 license = with lib.licenses; [ mit ];
46 maintainers = with lib.maintainers; [ fangpen ];
47 };
48}