persepolis: 5.1.1->5.2.0 (#429807)
This commit is contained in:
commit
7923381531
@ -1,41 +1,33 @@
|
||||
{
|
||||
lib,
|
||||
qt5,
|
||||
qt6,
|
||||
python3,
|
||||
fetchFromGitHub,
|
||||
ffmpeg,
|
||||
libnotify,
|
||||
pulseaudio,
|
||||
sound-theme-freedesktop,
|
||||
pkg-config,
|
||||
meson,
|
||||
ninja,
|
||||
}:
|
||||
|
||||
python3.pkgs.buildPythonApplication rec {
|
||||
pname = "persepolis";
|
||||
version = "5.1.1";
|
||||
version = "5.2.0";
|
||||
format = "other";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "persepolisdm";
|
||||
repo = "persepolis";
|
||||
tag = version;
|
||||
hash = "sha256-+gdrcEOUrMZw4nTO4bFLGanD4f7OumxTE99hpXlo69w=";
|
||||
hash = "sha256-E295Y76EmG6H1nwu7d4+OVPRtoCthROqYY5sIsBvUPI=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
# Ensure dependencies with hard-coded FHS dependencies are properly detected
|
||||
substituteInPlace check_dependencies.py --replace-fail "isdir(notifications_path)" "isdir('${sound-theme-freedesktop}/share/sounds/freedesktop')"
|
||||
'';
|
||||
|
||||
# prevent double wrapping
|
||||
dontWrapQtApps = true;
|
||||
nativeBuildInputs = [
|
||||
meson
|
||||
ninja
|
||||
pkg-config
|
||||
qt5.wrapQtAppsHook
|
||||
qt6.wrapQtAppsHook
|
||||
qt6.qtbase
|
||||
];
|
||||
|
||||
# feed args to wrapPythonApp
|
||||
@ -43,30 +35,33 @@ python3.pkgs.buildPythonApplication rec {
|
||||
"--prefix PATH : ${
|
||||
lib.makeBinPath [
|
||||
ffmpeg
|
||||
libnotify
|
||||
]
|
||||
}"
|
||||
"\${qtWrapperArgs[@]}"
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
pulseaudio
|
||||
sound-theme-freedesktop
|
||||
]
|
||||
++ (with python3.pkgs; [
|
||||
psutil
|
||||
pyqt5
|
||||
requests
|
||||
setproctitle
|
||||
setuptools
|
||||
yt-dlp
|
||||
]);
|
||||
(with python3.pkgs; [
|
||||
psutil
|
||||
pyside6
|
||||
pysocks
|
||||
urllib3
|
||||
dasbus
|
||||
requests
|
||||
setproctitle
|
||||
setuptools
|
||||
yt-dlp
|
||||
])
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Download manager GUI written in Python";
|
||||
mainProgram = "persepolis";
|
||||
homepage = "https://persepolisdm.github.io/";
|
||||
license = licenses.gpl3Plus;
|
||||
maintainers = with maintainers; [ iFreilicht ];
|
||||
maintainers = with maintainers; [
|
||||
iFreilicht
|
||||
L0L1P0P
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user