biome: 1.9.2 -> 1.9.3 (#349335)
[NixPkgs.git] / pkgs / development / python-modules / fints / default.nix
blobf63a5a37324c3651353d543c8e45b20a8d8f6e30
2   lib,
3   buildPythonPackage,
4   pythonOlder,
5   setuptools,
6   fetchFromGitHub,
7   bleach,
8   mt-940,
9   requests,
10   sepaxml,
11   pytestCheckHook,
12   pytest-mock,
15 buildPythonPackage rec {
16   version = "4.1.0";
17   pname = "fints";
18   pyproject = true;
20   disabled = pythonOlder "3.6";
22   src = fetchFromGitHub {
23     owner = "raphaelm";
24     repo = "python-fints";
25     rev = "v${version}";
26     hash = "sha256-1k6ZeYlv0vxNkqQse9vi/NT6ag3DJONKCWB594LvER0=";
27   };
29   postPatch = ''
30     substituteInPlace setup.py \
31       --replace-fail "enum-tools~=0.9.0" ""
32     sed -i "/document_enum/d" fints/formals.py
33   '';
35   build-system = [ setuptools ];
37   dependencies = [
38     bleach
39     mt-940
40     requests
41     sepaxml
42   ];
44   pythonImportsCheck = [ "fints" ];
46   nativeCheckInputs = [
47     pytestCheckHook
48     pytest-mock
49   ];
51   meta = with lib; {
52     homepage = "https://github.com/raphaelm/python-fints/";
53     description = "Pure-python FinTS (formerly known as HBCI) implementation";
54     license = licenses.lgpl3Only;
55     maintainers = with maintainers; [
56       dotlambda
57     ];
58   };