1{ lib, buildPythonPackage, fetchFromGitHub, isPy27
2, bleach
3, mt-940
4, requests
5, sepaxml
6, pytestCheckHook
7, pytest-mock
8}:
9
10buildPythonPackage rec {
11 version = "3.1.0";
12 pname = "fints";
13 disabled = isPy27;
14
15 src = fetchFromGitHub {
16 owner = "raphaelm";
17 repo = "python-fints";
18 rev = "v${version}";
19 hash = "sha256-3frJIEZgVnZD2spWYIuEtUt7MVsU/Zj82HOB9fKYQWE=";
20 };
21
22 propagatedBuildInputs = [ requests mt-940 sepaxml bleach ];
23
24 checkInputs = [ pytestCheckHook pytest-mock ];
25
26 meta = with lib; {
27 homepage = "https://github.com/raphaelm/python-fints/";
28 description = "Pure-python FinTS (formerly known as HBCI) implementation";
29 license = licenses.lgpl3Only;
30 maintainers = with maintainers; [ elohmeier dotlambda ];
31 };
32}