Merge pull request #239866 from r-ryantm/auto-update/python310Packages.mt-940
python310Packages.mt-940: 4.28.0 -> 4.30.0
This commit is contained in:
@@ -1,31 +1,49 @@
|
||||
{ lib, buildPythonPackage, fetchPypi, isPy3k
|
||||
, enum34, pyyaml, pytest
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, pyyaml
|
||||
, setuptools
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
version = "4.28.0";
|
||||
pname = "mt-940";
|
||||
version = "4.30.0";
|
||||
format = "setuptools";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-ydTOaijDmA2ogIONzRMMoz+5jr99qxWM1zzGGzg7f2Q=";
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "wolph";
|
||||
repo = "mt940";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-t6FOMu+KcEib+TZAv5uVAzvrUSt/k/RQn28jpdAY5Y0=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = lib.optional (!isPy3k) enum34;
|
||||
|
||||
nativeCheckInputs = [ pyyaml pytest ];
|
||||
|
||||
# requires tests files that are not present
|
||||
doCheck = false;
|
||||
checkPhase = ''
|
||||
py.test
|
||||
postPatch = ''
|
||||
sed -i "/--cov/d" pytest.ini
|
||||
sed -i "/--no-cov/d" pytest.ini
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "mt940" ];
|
||||
nativeBuildInputs = [
|
||||
setuptools
|
||||
];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pyyaml
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"mt940"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A library to parse MT940 files and returns smart Python collections for statistics and manipulation";
|
||||
description = "Module to parse MT940 files and returns smart Python collections for statistics and manipulation";
|
||||
homepage = "https://github.com/WoLpH/mt940";
|
||||
changelog = "https://github.com/wolph/mt940/releases/tag/v${version}";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user