2ce89355c3
GitOrigin-RevId: 22a81aa5fc15b2d41b12f7160a71cd4a9f3c3fa1
27 lines
634 B
Nix
27 lines
634 B
Nix
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
|
, enum34, pyyaml, pytest
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
version = "4.21.0";
|
|
pname = "mt-940";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "7cbd88fd7252d5a2694593633b31f819eb302423058fecb9f9959e74c01c2b86";
|
|
};
|
|
|
|
propagatedBuildInputs = lib.optional (!isPy3k) enum34;
|
|
|
|
checkInputs = [ pyyaml pytest ];
|
|
|
|
checkPhase = ''
|
|
py.test
|
|
'';
|
|
|
|
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;
|
|
};
|
|
}
|