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