Skip to content

Commit

Permalink
vorta: cleanup (NixOS#372512)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda authored Jan 10, 2025
2 parents 97568a3 + aae7c17 commit 17bc6ee
Showing 1 changed file with 19 additions and 13 deletions.
32 changes: 19 additions & 13 deletions pkgs/applications/backup/vorta/default.nix
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
{
lib,
stdenv,
python3Packages,
fetchFromGitHub,
wrapQtAppsHook,
borgbackup,
qtbase,
qtwayland,
stdenv,
borgbackup,
versionCheckHook,
makeFontsConf,
qtbase,
}:

python3Packages.buildPythonApplication rec {
Expand All @@ -23,26 +24,29 @@ python3Packages.buildPythonApplication rec {
};

nativeBuildInputs = [
python3Packages.setuptools
wrapQtAppsHook
];

buildInputs = lib.optionals stdenv.hostPlatform.isLinux [
qtwayland
];

propagatedBuildInputs = with python3Packages; [
build-system = with python3Packages; [
setuptools
];

dependencies = with python3Packages; [
packaging
peewee
pyqt6
platformdirs
psutil
pyqt6
secretstorage
setuptools
platformdirs
];

postPatch = ''
substituteInPlace src/vorta/assets/metadata/com.borgbase.Vorta.desktop \
--replace com.borgbase.Vorta "com.borgbase.Vorta-symbolic"
--replace-fail com.borgbase.Vorta "com.borgbase.Vorta-symbolic"
'';

postInstall = ''
Expand All @@ -61,7 +65,9 @@ python3Packages.buildPythonApplication rec {
pytest-qt
pytest-mock
pytestCheckHook
versionCheckHook
];
versionCheckProgramArg = [ "--version" ];

preCheck =
let
Expand Down Expand Up @@ -89,13 +95,13 @@ python3Packages.buildPythonApplication rec {
"tests/network_manager/test_darwin.py"
];

meta = with lib; {
meta = {
changelog = "https://github.com/borgbase/vorta/releases/tag/v${version}";
description = "Desktop Backup Client for Borg";
homepage = "https://vorta.borgbase.com/";
license = licenses.gpl3Only;
maintainers = with maintainers; [ ma27 ];
platforms = platforms.linux;
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ ma27 ];
platforms = lib.platforms.linux;
mainProgram = "vorta";
};
}

0 comments on commit 17bc6ee

Please sign in to comment.