2019-04-03 17:29:24 +03:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
|
|
|
, enum34, pyyaml, pytest
|
2018-03-11 17:36:26 +03:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2020-06-06 09:47:18 +03:00
|
|
|
version = "4.21.0";
|
2018-12-19 12:23:40 +03:00
|
|
|
pname = "mt-940";
|
2018-03-11 17:36:26 +03:00
|
|
|
|
2019-04-03 17:29:24 +03:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-06-06 09:47:18 +03:00
|
|
|
sha256 = "7cbd88fd7252d5a2694593633b31f819eb302423058fecb9f9959e74c01c2b86";
|
2018-03-11 17:36:26 +03:00
|
|
|
};
|
|
|
|
|
2018-12-19 12:23:40 +03:00
|
|
|
propagatedBuildInputs = lib.optional (!isPy3k) enum34;
|
2018-03-11 17:36:26 +03:00
|
|
|
|
2019-04-03 17:29:24 +03:00
|
|
|
checkInputs = [ pyyaml pytest ];
|
2018-12-19 12:23:40 +03:00
|
|
|
|
2018-03-11 17:36:26 +03:00
|
|
|
checkPhase = ''
|
2019-01-11 14:50:16 +03:00
|
|
|
py.test
|
2018-03-11 17:36:26 +03:00
|
|
|
'';
|
|
|
|
|
2019-04-03 17:29:24 +03:00
|
|
|
meta = with lib; {
|
2018-03-11 17:36:26 +03:00
|
|
|
description = "A library to parse MT940 files and returns smart Python collections for statistics and manipulation";
|
2020-04-01 04:11:51 +03:00
|
|
|
homepage = "https://github.com/WoLpH/mt940";
|
2018-03-11 17:36:26 +03:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|