2020-04-24 23:36:52 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
|
|
|
, enum34, pyyaml, pytest
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "4.27.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "mt-940";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-01-20 10:41:00 +00:00
|
|
|
sha256 = "sha256-LL4CRioio63gpXrsurVucrkFgQrEh0gZPZ79Y2tk/90=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = lib.optional (!isPy3k) enum34;
|
|
|
|
|
|
|
|
checkInputs = [ pyyaml pytest ];
|
|
|
|
|
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;
|
|
|
|
};
|
|
|
|
}
|