1{ lib, buildPythonPackage, fetchPypi, isPy3k
2, enum34, pyyaml, pytest
3}:
4
5buildPythonPackage rec {
6 version = "4.15.0";
7 pname = "mt-940";
8
9 src = fetchPypi {
10 inherit pname version;
11 sha256 = "4c1d5c23a9c3fec12a61ce3f61d8be107b4693be4a4b97381eca23f4a4dca8ed";
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}