nixpkgs/pkgs/development/python-modules/sepaxml/default.nix

38 lines
740 B
Nix
Raw Normal View History

2019-08-01 20:28:44 +00:00
{ stdenv, buildPythonPackage, fetchFromGitHub, isPy27
, lxml
, pytest
, text-unidecode
, xmlschema
}:
2018-12-20 17:45:23 +00:00
buildPythonPackage rec {
2019-08-01 20:28:44 +00:00
version = "2.1.0";
2018-12-20 17:45:23 +00:00
pname = "sepaxml";
2019-08-01 20:28:44 +00:00
disabled = isPy27;
2018-12-20 17:45:23 +00:00
2019-08-01 20:28:44 +00:00
src = fetchFromGitHub {
owner = "raphaelm";
repo = "python-sepaxml";
rev = version;
sha256 = "0lkb0nnyxmwvm6gkwls8w2290b66lwz9bv8p39wwcn7flabviwhj";
2018-12-20 17:45:23 +00:00
};
2019-08-01 20:28:44 +00:00
propagatedBuildInputs = [
text-unidecode
xmlschema
];
checkInputs = [ pytest lxml ];
checkPhase = ''
pytest
'';
2018-12-20 17:45:23 +00:00
meta = with stdenv.lib; {
homepage = https://github.com/raphaelm/python-sepaxml/;
description = "SEPA Direct Debit XML generation in python";
license = licenses.mit;
maintainers = with maintainers; [ elohmeier ];
};
}