summary refs log tree commit diff
path: root/pkgs/development/python-modules/sepaxml/default.nix
blob: 095b47db2bff4d95cce20dfe6d587f0fdb23cef7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
{ lib, stdenv, buildPythonPackage, fetchFromGitHub, isPy27
, lxml
, pytest
, text-unidecode
, xmlschema
}:

buildPythonPackage rec {
  version = "2.2.0";
  pname = "sepaxml";
  disabled = isPy27;

  src = fetchFromGitHub {
    owner = "raphaelm";
    repo = "python-sepaxml";
    rev = version;
    sha256 = "1qmgdcz61hs65m2fddwn9jpyk2sxifdb0f3jz1n0lgy774z0pmas";
  };

  propagatedBuildInputs = [
    text-unidecode
    xmlschema
  ];

  checkInputs = [ pytest lxml ];

  checkPhase = ''
    pytest
  '';

  meta = with lib; {
    homepage = "https://github.com/raphaelm/python-sepaxml/";
    description = "SEPA Direct Debit XML generation in python";
    license = licenses.mit;
    maintainers = with maintainers; [ elohmeier ];
  };
}