depot/third_party/nixpkgs/pkgs/development/python-modules/fints/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

59 lines
1 KiB
Nix

{
lib,
buildPythonPackage,
pythonOlder,
setuptools,
fetchFromGitHub,
bleach,
mt-940,
requests,
sepaxml,
pytestCheckHook,
pytest-mock,
}:
buildPythonPackage rec {
version = "4.1.0";
pname = "fints";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "raphaelm";
repo = "python-fints";
rev = "v${version}";
hash = "sha256-1k6ZeYlv0vxNkqQse9vi/NT6ag3DJONKCWB594LvER0=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "enum-tools~=0.9.0" ""
sed -i "/document_enum/d" fints/formals.py
'';
build-system = [ setuptools ];
dependencies = [
bleach
mt-940
requests
sepaxml
];
pythonImportsCheck = [ "fints" ];
nativeCheckInputs = [
pytestCheckHook
pytest-mock
];
meta = with lib; {
homepage = "https://github.com/raphaelm/python-fints/";
description = "Pure-python FinTS (formerly known as HBCI) implementation";
license = licenses.lgpl3Only;
maintainers = with maintainers; [
dotlambda
];
};
}