2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
|
|
|
, enum34, pyyaml, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-02-02 18:25:31 +00:00
|
|
|
version = "4.28.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "mt-940";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-02-02 18:25:31 +00:00
|
|
|
sha256 = "sha256-ydTOaijDmA2ogIONzRMMoz+5jr99qxWM1zzGGzg7f2Q=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = lib.optional (!isPy3k) enum34;
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pyyaml pytest ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
# requires tests files that are not present
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
2020-07-18 16:06:22 +00:00
|
|
|
pythonImportsCheck = [ "mt940" ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A library to parse MT940 files and returns smart Python collections for statistics and manipulation";
|
|
|
|
homepage = "https://github.com/WoLpH/mt940";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|