Files
nixpkgs/pkgs/development/python-modules/mt-940/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

44 lines
894 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pytest-cov-stub,
pythonOlder,
pyyaml,
setuptools,
}:
buildPythonPackage rec {
pname = "mt-940";
version = "4.30.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "wolph";
repo = "mt940";
tag = "v${version}";
hash = "sha256-t6FOMu+KcEib+TZAv5uVAzvrUSt/k/RQn28jpdAY5Y0=";
};
nativeBuildInputs = [ setuptools ];
nativeCheckInputs = [
pyyaml
pytestCheckHook
pytest-cov-stub
];
pythonImportsCheck = [ "mt940" ];
meta = {
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 = lib.licenses.bsd3;
maintainers = [ ];
};
}