Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 41 lines 953 B view raw
1{ stdenv, buildPythonPackage, fetchFromGitHub, isPy27 2, bleach 3, mt-940 4, pytest 5, requests 6, sepaxml 7}: 8 9buildPythonPackage rec { 10 version = "2.2.0"; 11 pname = "fints"; 12 disabled = isPy27; 13 14 src = fetchFromGitHub { 15 owner = "raphaelm"; 16 repo = "python-fints"; 17 rev = "v${version}"; 18 sha256 = "1gx173dzdprf3jsc7dss0xax8s6l2hr02qg9m5c4rksb3dl5fl8w"; 19 }; 20 21 postPatch = '' 22 substituteInPlace setup.py \ 23 --replace 'sepaxml==2.0.*' 'sepaxml~=2.0' 24 ''; 25 26 propagatedBuildInputs = [ requests mt-940 sepaxml bleach ]; 27 28 checkInputs = [ pytest ]; 29 30 # ignore network calls and broken fixture 31 checkPhase = '' 32 pytest . --ignore=tests/test_client.py -k 'not robust_mode' 33 ''; 34 35 meta = with stdenv.lib; { 36 homepage = https://github.com/raphaelm/python-fints/; 37 description = "Pure-python FinTS (formerly known as HBCI) implementation"; 38 license = licenses.lgpl3; 39 maintainers = with maintainers; [ elohmeier ]; 40 }; 41}