Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at python-updates 40 lines 846 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pytest-cov-stub, 7 pyyaml, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "mt-940"; 13 version = "4.30.0"; 14 format = "setuptools"; 15 16 src = fetchFromGitHub { 17 owner = "wolph"; 18 repo = "mt940"; 19 tag = "v${version}"; 20 hash = "sha256-t6FOMu+KcEib+TZAv5uVAzvrUSt/k/RQn28jpdAY5Y0="; 21 }; 22 23 nativeBuildInputs = [ setuptools ]; 24 25 nativeCheckInputs = [ 26 pyyaml 27 pytestCheckHook 28 pytest-cov-stub 29 ]; 30 31 pythonImportsCheck = [ "mt940" ]; 32 33 meta = { 34 description = "Module to parse MT940 files and returns smart Python collections for statistics and manipulation"; 35 homepage = "https://github.com/WoLpH/mt940"; 36 changelog = "https://github.com/wolph/mt940/releases/tag/v${version}"; 37 license = lib.licenses.bsd3; 38 maintainers = [ ]; 39 }; 40}