1{ lib, buildPythonPackage, fetchPypi, isPy3k
2, enum34, pyyaml, pytest
3}:
4
5buildPythonPackage rec {
6 version = "4.19.0";
7 pname = "mt-940";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "5d109e8dc4b490a4b92ec0153713710eb067b36b350ce1ff60c406afddc7d3cd";
12 };
13
14 propagatedBuildInputs = lib.optional (!isPy3k) enum34;
15
16 checkInputs = [ pyyaml pytest ];
17
18 checkPhase = ''
19 py.test
20 '';
21
22 meta = with lib; {
23 description = "A library to parse MT940 files and returns smart Python collections for statistics and manipulation";
24 homepage = https://github.com/WoLpH/mt940;
25 license = licenses.bsd3;
26 };
27}