2021-01-31 09:56:45 +00:00
|
|
|
{ lib
|
|
|
|
, python3
|
|
|
|
, fetchFromGitHub
|
|
|
|
, wrapQtAppsHook
|
2021-05-07 12:22:55 +01:00
|
|
|
, borgbackup
|
2020-03-28 21:32:34 +00:00
|
|
|
}:
|
|
|
|
|
2021-01-31 09:56:45 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-03-28 21:32:34 +00:00
|
|
|
pname = "vorta";
|
2021-06-21 08:42:30 +01:00
|
|
|
version = "0.7.7";
|
2020-03-28 21:32:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "borgbase";
|
|
|
|
repo = "vorta";
|
|
|
|
rev = "v${version}";
|
2021-06-21 08:42:30 +01:00
|
|
|
sha256 = "sha256-AH9CvoWAaNLPLC+NL+VXtYq9CNCMt0AFtC1ZGXSlcHQ=";
|
2020-03-28 21:32:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i -e '/setuptools_git/d' -e '/pytest-runner/d' setup.cfg
|
|
|
|
'';
|
|
|
|
|
2021-01-31 09:56:45 +00:00
|
|
|
nativeBuildInputs = [ wrapQtAppsHook ];
|
2020-03-28 21:32:34 +00:00
|
|
|
|
2021-01-31 09:56:45 +00:00
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
2020-03-28 21:32:34 +00:00
|
|
|
paramiko peewee pyqt5 python-dateutil APScheduler psutil qdarkstyle
|
|
|
|
secretstorage appdirs setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
# QT setup in tests broken.
|
|
|
|
doCheck = false;
|
|
|
|
|
2020-10-08 16:21:40 +01:00
|
|
|
preFixup = ''
|
2021-05-07 12:22:55 +01:00
|
|
|
makeWrapperArgs+=(
|
|
|
|
"''${qtWrapperArgs[@]}"
|
|
|
|
--prefix PATH : ${lib.makeBinPath [ borgbackup ]}
|
|
|
|
)
|
2020-03-28 21:32:34 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
2021-01-31 09:56:45 +00:00
|
|
|
license = licenses.gpl3Only;
|
2020-03-28 21:32:34 +00:00
|
|
|
homepage = "https://vorta.borgbase.com/";
|
|
|
|
maintainers = with maintainers; [ ma27 ];
|
|
|
|
description = "Desktop Backup Client for Borg";
|
|
|
|
platforms = platforms.linux;
|
|
|
|
};
|
|
|
|
}
|