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