3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/mt-940/default.nix

28 lines
632 B
Nix
Raw Normal View History

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