nixpkgs/pkgs/applications/office/banking/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

82 lines
1.8 KiB
Nix
Raw Normal View History

2021-03-08 11:46:32 +00:00
{ lib
2022-03-31 07:15:59 +00:00
, fetchpatch
2021-03-08 11:46:32 +00:00
, fetchFromGitLab
, python3
, appstream-glib
, desktop-file-utils
, glib
, libxml2
, meson
, ninja
, pkg-config
2022-05-18 05:00:51 +00:00
, wrapGAppsHook4
2021-03-08 11:46:32 +00:00
, gobject-introspection
2022-04-11 03:07:23 +00:00
, libadwaita
2021-03-08 11:46:32 +00:00
, librsvg
}:
python3.pkgs.buildPythonApplication rec {
pname = "banking";
2022-04-11 03:07:23 +00:00
version = "0.4.0";
2021-03-08 11:46:32 +00:00
format = "other";
src = fetchFromGitLab {
owner = "tabos";
repo = "banking";
rev = version;
2022-04-11 03:07:23 +00:00
sha256 = "sha256-VGNCSirQslRfLIFeo375BNlHujoNXm+s55Ty+hB+ZRI=";
2021-03-08 11:46:32 +00:00
};
2022-03-31 07:15:59 +00:00
patches = [
# Fix build with meson 0.61
# https://gitlab.com/tabos/banking/-/merge_requests/90
(fetchpatch {
url = "https://gitlab.com/tabos/banking/-/commit/c3cc9afc380fe666ae6e331aa8a97659c60397a4.patch";
sha256 = "r9n9l47XU4Tg4U5sfiFdGkbG8QB7O4ol9CB1ya06yOc=";
})
2022-04-11 03:07:23 +00:00
# fix build with libadwaita 1.0.0
(fetchpatch {
url = "https://gitlab.com/tabos/banking/-/commit/27ac4a89ba6047005d43de71a469ef30d1fda8b5.patch";
hash = "sha256-dpDjdYf3gDsyFMTfGes+x27yUxKEnKjLulJxX2encG0=";
})
2022-03-31 07:15:59 +00:00
];
2021-03-08 11:46:32 +00:00
postPatch = ''
2022-05-18 05:00:51 +00:00
substituteInPlace meson_post_install.py \
--replace gtk-update-icon-cache gtk4-update-icon-cache
2022-04-11 03:07:23 +00:00
patchShebangs meson_post_conf.py meson_post_install.py
2021-03-08 11:46:32 +00:00
'';
nativeBuildInputs = [
appstream-glib # for appstream-util
desktop-file-utils # for desktop-file-validate
glib # for glib-compile-resources
libxml2 # for xmllint
meson
ninja
pkg-config
2022-05-18 05:00:51 +00:00
wrapGAppsHook4
2021-03-08 11:46:32 +00:00
];
buildInputs = [
gobject-introspection
2022-04-11 03:07:23 +00:00
libadwaita
2021-03-08 11:46:32 +00:00
librsvg
];
propagatedBuildInputs = with python3.pkgs; [
cryptography
fints
mt-940
pygobject3
];
meta = with lib; {
description = "Banking application for small screens";
2022-01-07 06:35:04 +00:00
homepage = "https://tabos.gitlab.io/projects/banking/";
2021-03-08 11:46:32 +00:00
license = licenses.gpl3Plus;
maintainers = with maintainers; [ dotlambda ];
};
}