python3Packages.fints: 2.1.1 -> 2.2.0

This commit is contained in:
Jonathan Ringer 2019-08-01 14:27:08 -07:00
parent 2fad3c5a74
commit 860e49b332

View File

@ -1,20 +1,36 @@
{ stdenv, buildPythonPackage, fetchPypi, { stdenv, buildPythonPackage, fetchFromGitHub, isPy27
requests, mt-940, sepaxml, bleach, isPy3k }: , bleach
, mt-940
, pytest
, requests
, sepaxml
}:
buildPythonPackage rec { buildPythonPackage rec {
version = "2.1.1"; version = "2.2.0";
pname = "fints"; pname = "fints";
disabled = !isPy3k; disabled = isPy27;
src = fetchPypi { src = fetchFromGitHub {
inherit pname version; owner = "raphaelm";
sha256 = "06p6p0xxw0n10hmf7z4k1l29fya0sja433s6lasjr1bal5asdhaq"; repo = "python-fints";
rev = "v${version}";
sha256 = "1gx173dzdprf3jsc7dss0xax8s6l2hr02qg9m5c4rksb3dl5fl8w";
}; };
postPatch = ''
substituteInPlace setup.py \
--replace 'sepaxml==2.0.*' 'sepaxml~=2.0'
'';
propagatedBuildInputs = [ requests mt-940 sepaxml bleach ]; propagatedBuildInputs = [ requests mt-940 sepaxml bleach ];
# no tests included in PyPI package checkInputs = [ pytest ];
doCheck = false;
# ignore network calls and broken fixture
checkPhase = ''
pytest . --ignore=tests/test_client.py -k 'not robust_mode'
'';
meta = with stdenv.lib; { meta = with stdenv.lib; {
homepage = https://github.com/raphaelm/python-fints/; homepage = https://github.com/raphaelm/python-fints/;