1{
2 lib,
3 buildPythonPackage,
4 pythonOlder,
5 setuptools,
6 fetchFromGitHub,
7 bleach,
8 mt-940,
9 requests,
10 sepaxml,
11 pytestCheckHook,
12 pytest-mock,
13}:
14
15buildPythonPackage rec {
16 version = "4.2.3";
17 pname = "fints";
18 pyproject = true;
19
20 disabled = pythonOlder "3.9";
21
22 src = fetchFromGitHub {
23 owner = "raphaelm";
24 repo = "python-fints";
25 tag = "v${version}";
26 hash = "sha256-QR5/mAll6vuP+hJo/oguynLLsGawhTQNaU6TCgww9yM=";
27 };
28
29 pythonRemoveDeps = [ "enum-tools" ];
30
31 build-system = [ setuptools ];
32
33 dependencies = [
34 bleach
35 mt-940
36 requests
37 sepaxml
38 ];
39
40 pythonImportsCheck = [ "fints" ];
41
42 nativeCheckInputs = [
43 pytestCheckHook
44 pytest-mock
45 ];
46
47 meta = with lib; {
48 homepage = "https://github.com/raphaelm/python-fints/";
49 description = "Pure-python FinTS (formerly known as HBCI) implementation";
50 license = licenses.lgpl3Only;
51 maintainers = with maintainers; [
52 dotlambda
53 ];
54 };
55}