1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 pyyaml, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "mt-940"; 13 version = "4.30.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "wolph"; 20 repo = "mt940"; 21 rev = "refs/tags/v${version}"; 22 hash = "sha256-t6FOMu+KcEib+TZAv5uVAzvrUSt/k/RQn28jpdAY5Y0="; 23 }; 24 25 postPatch = '' 26 sed -i "/--cov/d" pytest.ini 27 sed -i "/--no-cov/d" pytest.ini 28 ''; 29 30 nativeBuildInputs = [ setuptools ]; 31 32 nativeCheckInputs = [ 33 pyyaml 34 pytestCheckHook 35 ]; 36 37 pythonImportsCheck = [ "mt940" ]; 38 39 meta = with lib; { 40 description = "Module to parse MT940 files and returns smart Python collections for statistics and manipulation"; 41 homepage = "https://github.com/WoLpH/mt940"; 42 changelog = "https://github.com/wolph/mt940/releases/tag/v${version}"; 43 license = licenses.bsd3; 44 maintainers = with maintainers; [ ]; 45 }; 46}