python.pkgs.mt-940: 4.13.2 -> 4.15.0

This commit is contained in:
Robert Schütz 2019-04-03 16:29:24 +02:00
parent f328510af6
commit cc33bcb080

View File

@ -1,36 +1,27 @@
{ buildPythonPackage, stdenv, pyyaml, pytest, enum34 { lib, buildPythonPackage, fetchPypi, isPy3k
, pytestpep8, pytest-flakes, fetchFromGitHub, isPy3k, lib, glibcLocales , enum34, pyyaml, pytest
}: }:
buildPythonPackage rec { buildPythonPackage rec {
version = "4.13.2"; version = "4.15.0";
pname = "mt-940"; pname = "mt-940";
# No tests in PyPI tarball src = fetchPypi {
# See https://github.com/WoLpH/mt940/pull/72 inherit pname version;
src = fetchFromGitHub { sha256 = "4c1d5c23a9c3fec12a61ce3f61d8be107b4693be4a4b97381eca23f4a4dca8ed";
owner = "WoLpH";
repo = "mt940";
rev = "v${version}";
sha256 = "1lvw3qyv7qhjabcvg55br8x4pnc7hv8xzzaf6wnr8cfjg0q7dzzg";
}; };
postPatch = ''
# No coverage report
sed -i "/--\(no-\)\?cov/d" pytest.ini
'';
propagatedBuildInputs = lib.optional (!isPy3k) enum34; propagatedBuildInputs = lib.optional (!isPy3k) enum34;
checkInputs = [ pyyaml pytestpep8 pytest-flakes pytest ]; checkInputs = [ pyyaml pytest ];
checkPhase = '' checkPhase = ''
py.test py.test
''; '';
meta = with stdenv.lib; { meta = with lib; {
description = "A library to parse MT940 files and returns smart Python collections for statistics and manipulation"; description = "A library to parse MT940 files and returns smart Python collections for statistics and manipulation";
inherit (src.meta) homepage; homepage = https://github.com/WoLpH/mt940;
license = licenses.bsd3; license = licenses.bsd3;
}; };
} }