2022-04-27 09:35:20 +00:00
|
|
|
{ lib, fetchFromGitHub, buildPythonApplication, pyside2, twisted, certifi, qt5, enableGUI ? true }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonApplication rec {
|
|
|
|
pname = "syncplay";
|
2021-08-25 08:27:29 +00:00
|
|
|
version = "1.6.9";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "Syncplay";
|
|
|
|
repo = "syncplay";
|
|
|
|
rev = "v${version}";
|
2021-08-25 08:27:29 +00:00
|
|
|
sha256 = "0qm3qn4a1nahhs7q81liz514n9blsi107g9s9xfw2i8pzi7v9v0v";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
propagatedBuildInputs = [ twisted certifi ]
|
2022-06-16 17:23:12 +00:00
|
|
|
++ twisted.optional-dependencies.tls
|
2022-04-27 09:35:20 +00:00
|
|
|
++ lib.optional enableGUI pyside2;
|
|
|
|
nativeBuildInputs = lib.optionals enableGUI [ qt5.wrapQtAppsHook ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
makeFlags = [ "DESTDIR=" "PREFIX=$(out)" ];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
postFixup = lib.optionalString enableGUI ''
|
2020-04-24 23:36:52 +00:00
|
|
|
wrapQtApp $out/bin/syncplay
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "https://syncplay.pl/";
|
|
|
|
description = "Free software that synchronises media players";
|
|
|
|
license = licenses.asl20;
|
|
|
|
platforms = platforms.linux;
|
2021-12-21 02:18:32 +00:00
|
|
|
maintainers = with maintainers; [ Enzime ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|