nixpkgs-suyu/pkgs/applications/backup/vorta/default.nix

44 lines
961 B
Nix
Raw Normal View History

2021-01-31 10:56:45 +01:00
{ lib
, python3
, fetchFromGitHub
, wrapQtAppsHook
}:
2021-01-31 10:56:45 +01:00
python3.pkgs.buildPythonApplication rec {
pname = "vorta";
2021-01-31 10:56:45 +01:00
version = "0.7.2";
src = fetchFromGitHub {
owner = "borgbase";
repo = "vorta";
rev = "v${version}";
2021-01-31 10:56:45 +01:00
sha256 = "1amq0fz3xrnxplzd6ih2azx6b4k1w496kcr7f8agfp617f5rkwa5";
};
postPatch = ''
sed -i -e '/setuptools_git/d' -e '/pytest-runner/d' setup.cfg
'';
2021-01-31 10:56:45 +01:00
nativeBuildInputs = [ wrapQtAppsHook ];
2021-01-31 10:56:45 +01:00
propagatedBuildInputs = with python3.pkgs; [
paramiko peewee pyqt5 python-dateutil APScheduler psutil qdarkstyle
secretstorage appdirs setuptools
];
# QT setup in tests broken.
doCheck = false;
2020-10-08 17:21:40 +02:00
preFixup = ''
makeWrapperArgs+=("''${qtWrapperArgs[@]}")
'';
meta = with lib; {
2021-01-31 10:56:45 +01:00
license = licenses.gpl3Only;
homepage = "https://vorta.borgbase.com/";
maintainers = with maintainers; [ ma27 ];
description = "Desktop Backup Client for Borg";
platforms = platforms.linux;
};
}