2019-04-03 14:29:24 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
|
|
|
, enum34, pyyaml, pytest
|
2018-03-11 14:36:26 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-05-15 09:35:51 +00:00
|
|
|
version = "4.26.0";
|
2018-12-19 09:23:40 +00:00
|
|
|
pname = "mt-940";
|
2018-03-11 14:36:26 +00:00
|
|
|
|
2019-04-03 14:29:24 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-05-15 09:35:51 +00:00
|
|
|
sha256 = "sha256-HL56TXZNkjVnap0XIhBT/xDA2N80NLCLpvuXkxXu6zE=";
|
2018-03-11 14:36:26 +00:00
|
|
|
};
|
|
|
|
|
2018-12-19 09:23:40 +00:00
|
|
|
propagatedBuildInputs = lib.optional (!isPy3k) enum34;
|
2018-03-11 14:36:26 +00:00
|
|
|
|
2019-04-03 14:29:24 +00:00
|
|
|
checkInputs = [ pyyaml pytest ];
|
2018-12-19 09:23:40 +00:00
|
|
|
|
2020-07-06 15:40:15 +00:00
|
|
|
# requires tests files that are not present
|
|
|
|
doCheck = false;
|
2018-03-11 14:36:26 +00:00
|
|
|
checkPhase = ''
|
2019-01-11 11:50:16 +00:00
|
|
|
py.test
|
2018-03-11 14:36:26 +00:00
|
|
|
'';
|
|
|
|
|
2020-07-06 15:40:15 +00:00
|
|
|
pythonImportsCheck = [ "mt940" ];
|
|
|
|
|
2019-04-03 14:29:24 +00:00
|
|
|
meta = with lib; {
|
2018-03-11 14:36:26 +00:00
|
|
|
description = "A library to parse MT940 files and returns smart Python collections for statistics and manipulation";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/WoLpH/mt940";
|
2018-03-11 14:36:26 +00:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|