I have the following package
{
lib,
python3,
fetchFromGitHub,
}:
python3.pkgs.buildPythonApplication rec {
pname = "ofxstatement";
version = "0.9.2";
pyproject = true;
src = fetchFromGitHub {
owner = "kedder";
repo = "ofxstatement";
rev = version;
hash = "sha256-GLOBunyE4BWHTtiNmPw6CPR+xgze8aXn7bC0uYuWWi8=";
};
prePatch=''
cp ${fetchFromGitHub {
owner = "3v1n0";
repo = "ofxstatement-n26";
rev = "0.2";
hash = "sha256-zGpYMNf1O0tfj0CqUCy1nDxUEKsZg5eEgqL5F0iTgLs=";
}}/src/ofxstatement/plugins/n26.py src/ofxstatement/plugins
'';
build-system = [
python3.pkgs.setuptools
];
dependencies = with python3.pkgs; [
importlib-metadata
platformdirs
zipp
];
pythonImportsCheck = [
"ofxstatement"
];
meta = {
description = "Tool to convert proprietary bank statement to OFX format, suitable for importing to GnuCash or other personal finance applications";
homepage = "https://github.com/kedder/ofxstatement";
changelog = "https://github.com/kedder/ofxstatement/blob/${src.rev}/CHANGES.rst";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ pasqui23 ];
mainProgram = "ofxstatement";
};
}
but after I build it I get the following error:
result/bin/ofxstatement list-plugins
No plugins available. Install plugin eggs or create your own.
See https://github.com/kedder/ofxstatement for more info.
This is wrong as it should list the n26 plugin
GitHub - 3v1n0/ofxstatement-n26: N26 parser for ofxstatement only list that n26.py file, so I thought (erroely) that merely copying it would suffice