2019-08-01 22:27:08 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy27
|
|
|
|
, bleach
|
|
|
|
, mt-940
|
|
|
|
, pytest
|
|
|
|
, requests
|
|
|
|
, sepaxml
|
|
|
|
}:
|
2018-12-20 17:46:04 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2019-08-01 22:27:08 +01:00
|
|
|
version = "2.2.0";
|
2018-12-20 17:46:04 +00:00
|
|
|
pname = "fints";
|
2019-08-01 22:27:08 +01:00
|
|
|
disabled = isPy27;
|
2018-12-20 17:46:04 +00:00
|
|
|
|
2019-08-01 22:27:08 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "raphaelm";
|
|
|
|
repo = "python-fints";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1gx173dzdprf3jsc7dss0xax8s6l2hr02qg9m5c4rksb3dl5fl8w";
|
2018-12-20 17:46:04 +00:00
|
|
|
};
|
|
|
|
|
2019-08-01 22:27:08 +01:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace 'sepaxml==2.0.*' 'sepaxml~=2.0'
|
|
|
|
'';
|
|
|
|
|
2018-12-20 17:46:04 +00:00
|
|
|
propagatedBuildInputs = [ requests mt-940 sepaxml bleach ];
|
|
|
|
|
2019-08-01 22:27:08 +01:00
|
|
|
checkInputs = [ pytest ];
|
|
|
|
|
|
|
|
# ignore network calls and broken fixture
|
|
|
|
checkPhase = ''
|
|
|
|
pytest . --ignore=tests/test_client.py -k 'not robust_mode'
|
|
|
|
'';
|
2018-12-20 17:46:04 +00:00
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/raphaelm/python-fints/;
|
|
|
|
description = "Pure-python FinTS (formerly known as HBCI) implementation";
|
|
|
|
license = licenses.lgpl3;
|
|
|
|
maintainers = with maintainers; [ elohmeier ];
|
|
|
|
};
|
|
|
|
}
|