Merge pull request #239866 from r-ryantm/auto-update/python310Packages.mt-940

python310Packages.mt-940: 4.28.0 -> 4.30.0

authored by

Weijia Wang and committed by
GitHub
616d9a91 724f16f9

+33 -15
+33 -15
pkgs/development/python-modules/mt-940/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, isPy3k 2 - , enum34, pyyaml, pytest 1 + { lib 2 + , buildPythonPackage 3 + , fetchFromGitHub 4 + , pytestCheckHook 5 + , pythonOlder 6 + , pyyaml 7 + , setuptools 3 8 }: 4 9 5 10 buildPythonPackage rec { 6 - version = "4.28.0"; 7 11 pname = "mt-940"; 12 + version = "4.30.0"; 13 + format = "setuptools"; 8 14 9 - src = fetchPypi { 10 - inherit pname version; 11 - hash = "sha256-ydTOaijDmA2ogIONzRMMoz+5jr99qxWM1zzGGzg7f2Q="; 15 + disabled = pythonOlder "3.7"; 16 + 17 + src = fetchFromGitHub { 18 + owner = "wolph"; 19 + repo = "mt940"; 20 + rev = "refs/tags/v${version}"; 21 + hash = "sha256-t6FOMu+KcEib+TZAv5uVAzvrUSt/k/RQn28jpdAY5Y0="; 12 22 }; 13 23 14 - propagatedBuildInputs = lib.optional (!isPy3k) enum34; 24 + postPatch = '' 25 + sed -i "/--cov/d" pytest.ini 26 + sed -i "/--no-cov/d" pytest.ini 27 + ''; 15 28 16 - nativeCheckInputs = [ pyyaml pytest ]; 29 + nativeBuildInputs = [ 30 + setuptools 31 + ]; 17 32 18 - # requires tests files that are not present 19 - doCheck = false; 20 - checkPhase = '' 21 - py.test 22 - ''; 33 + nativeCheckInputs = [ 34 + pyyaml 35 + pytestCheckHook 36 + ]; 23 37 24 - pythonImportsCheck = [ "mt940" ]; 38 + pythonImportsCheck = [ 39 + "mt940" 40 + ]; 25 41 26 42 meta = with lib; { 27 - description = "A library to parse MT940 files and returns smart Python collections for statistics and manipulation"; 43 + description = "Module to parse MT940 files and returns smart Python collections for statistics and manipulation"; 28 44 homepage = "https://github.com/WoLpH/mt940"; 45 + changelog = "https://github.com/wolph/mt940/releases/tag/v${version}"; 29 46 license = licenses.bsd3; 47 + maintainers = with maintainers; [ ]; 30 48 }; 31 49 }