1{ stdenv, buildPythonPackage, fetchFromGitHub, isPy27
2, lxml
3, pytest
4, text-unidecode
5, xmlschema
6}:
7
8buildPythonPackage rec {
9 version = "2.1.0";
10 pname = "sepaxml";
11 disabled = isPy27;
12
13 src = fetchFromGitHub {
14 owner = "raphaelm";
15 repo = "python-sepaxml";
16 rev = version;
17 sha256 = "0lkb0nnyxmwvm6gkwls8w2290b66lwz9bv8p39wwcn7flabviwhj";
18 };
19
20 propagatedBuildInputs = [
21 text-unidecode
22 xmlschema
23 ];
24
25 checkInputs = [ pytest lxml ];
26
27 checkPhase = ''
28 pytest
29 '';
30
31 meta = with stdenv.lib; {
32 homepage = https://github.com/raphaelm/python-sepaxml/;
33 description = "SEPA Direct Debit XML generation in python";
34 license = licenses.mit;
35 maintainers = with maintainers; [ elohmeier ];
36 };
37}