uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
93
pkgs/applications/backup/vorta/default.nix
Normal file
93
pkgs/applications/backup/vorta/default.nix
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
{ lib
|
||||
, python3Packages
|
||||
, fetchFromGitHub
|
||||
, wrapQtAppsHook
|
||||
, borgbackup
|
||||
, qt5
|
||||
}:
|
||||
|
||||
python3Packages.buildPythonApplication rec {
|
||||
pname = "vorta";
|
||||
version = "0.8.6";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "borgbase";
|
||||
repo = "vorta";
|
||||
rev = "refs/tags/v${version}";
|
||||
sha256 = "sha256-J/Cl+et4AS44PPG2SmOHosKVw0XtOyNL0qJk68OHwQc=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ wrapQtAppsHook ];
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
paramiko
|
||||
peewee
|
||||
pyqt5
|
||||
python-dateutil
|
||||
psutil
|
||||
qdarkstyle
|
||||
secretstorage
|
||||
appdirs
|
||||
setuptools
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.cfg \
|
||||
--replace setuptools_git "" \
|
||||
--replace pytest-runner ""
|
||||
|
||||
substituteInPlace src/vorta/assets/metadata/com.borgbase.Vorta.desktop \
|
||||
--replace Exec=vorta "Exec=$out/bin/vorta" \
|
||||
--replace com.borgbase.Vorta "com.borgbase.Vorta-symbolic"
|
||||
'';
|
||||
|
||||
postInstall = ''
|
||||
install -Dm644 src/vorta/assets/metadata/com.borgbase.Vorta.desktop $out/share/applications/com.borgbase.Vorta.desktop
|
||||
'';
|
||||
|
||||
preFixup = ''
|
||||
makeWrapperArgs+=(
|
||||
"''${qtWrapperArgs[@]}"
|
||||
--prefix PATH : ${lib.makeBinPath [ borgbackup ]}
|
||||
)
|
||||
'';
|
||||
|
||||
checkInputs = with python3Packages; [
|
||||
pytest-qt
|
||||
pytest-mock
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
preCheck = ''
|
||||
export HOME=$(mktemp -d)
|
||||
# For tests/test_misc.py::test_autostart
|
||||
mkdir -p $HOME/.config/autostart
|
||||
export QT_PLUGIN_PATH="${qt5.qtbase.bin}/${qt5.qtbase.qtPluginPrefix}"
|
||||
export QT_QPA_PLATFORM=offscreen
|
||||
'';
|
||||
|
||||
disabledTestPaths = [
|
||||
"tests/test_archives.py"
|
||||
"tests/test_borg.py"
|
||||
"tests/test_lock.py"
|
||||
"tests/test_notifications.py"
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
"diff_archives_dict_issue-Users"
|
||||
"diff_archives-test"
|
||||
"test_repo_unlink"
|
||||
"test_repo_add_success"
|
||||
"test_ssh_dialog"
|
||||
"test_create"
|
||||
"test_scheduler_create_backup"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
license = licenses.gpl3Only;
|
||||
homepage = "https://vorta.borgbase.com/";
|
||||
maintainers = with maintainers; [ ma27 ];
|
||||
description = "Desktop Backup Client for Borg";
|
||||
platforms = platforms.linux;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue