Files
nixpkgs/pkgs/development/python-modules/mt-940/default.nix
T
Jörg Thalheim 5356420466 treewide: remove unused with statements from maintainer lists
$ find -type f -name '*.nix' -print0 | xargs -P "$(nproc)" -0 sed -i \
  -e 's!with lib.maintainers; \[ *\];![ ];!' \
  -e 's!with maintainers; \[ *\];![ ];!'
2024-07-29 10:06:20 +08:00

47 lines
964 B
Nix

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