2018-03-11 15:36:26 +01:00
|
|
|
{ buildPythonPackage, stdenv, pytestrunner, pyyaml, pytest, enum34
|
|
|
|
, pytestpep8, pytestflakes,fetchFromGitHub, isPy3k, lib, glibcLocales
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2018-05-28 14:59:57 +02:00
|
|
|
version = "4.10.0";
|
2018-03-11 15:36:26 +01:00
|
|
|
pname = "mt940";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "WoLpH";
|
|
|
|
repo = pname;
|
2018-05-28 14:59:57 +02:00
|
|
|
rev = "v${version}";
|
2018-03-11 15:36:26 +01:00
|
|
|
sha256 = "1dsf2di8rr0iw2vaz6dppalby3y7i8x2bl0qjqvaiqacjxxvwj65";
|
|
|
|
};
|
|
|
|
|
|
|
|
patches = [
|
|
|
|
./no-coverage.patch
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ pyyaml pytestrunner ]
|
|
|
|
++ lib.optional (!isPy3k) enum34;
|
|
|
|
|
|
|
|
LC_ALL="en_US.UTF-8";
|
|
|
|
|
|
|
|
checkInputs = [ pytestpep8 pytestflakes pytest glibcLocales ];
|
|
|
|
checkPhase = ''
|
|
|
|
py.test
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A library to parse MT940 files and returns smart Python collections for statistics and manipulation";
|
2018-06-27 22:12:57 +02:00
|
|
|
homepage = https://pythonhosted.org/mt-940/;
|
2018-03-11 15:36:26 +01:00
|
|
|
license = licenses.bsd3;
|
|
|
|
};
|
|
|
|
}
|