nixpkgs/pkgs/development/python-modules/mt-940/default.nix

32 lines
736 B
Nix
Raw Normal View History

2019-04-03 16:29:24 +02:00
{ lib, buildPythonPackage, fetchPypi, isPy3k
, enum34, pyyaml, pytest
}:
buildPythonPackage rec {
2020-08-16 19:31:07 +02:00
version = "4.23.0";
2018-12-19 10:23:40 +01:00
pname = "mt-940";
2019-04-03 16:29:24 +02:00
src = fetchPypi {
inherit pname version;
2020-08-16 19:31:07 +02:00
sha256 = "9274bc8298b2d4b69cb3936bdcda315b50e45975789f519a237bdec58346b8d7";
};
2018-12-19 10:23:40 +01:00
propagatedBuildInputs = lib.optional (!isPy3k) enum34;
2019-04-03 16:29:24 +02:00
checkInputs = [ pyyaml pytest ];
2018-12-19 10:23:40 +01:00
# requires tests files that are not present
doCheck = false;
checkPhase = ''
2019-01-11 12:50:16 +01:00
py.test
'';
pythonImportsCheck = [ "mt940" ];
2019-04-03 16:29:24 +02: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;
};
}