2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
setuptools,
|
|
|
|
requests,
|
|
|
|
ssdpy,
|
|
|
|
appdirs,
|
|
|
|
pygobject3,
|
|
|
|
gobject-introspection,
|
|
|
|
gtk3,
|
|
|
|
wrapGAppsHook3,
|
2024-09-19 14:19:46 +00:00
|
|
|
buildPythonPackage,
|
2024-06-05 15:53:02 +00:00
|
|
|
buildApplication ? false,
|
2023-10-09 19:29:22 +00:00
|
|
|
}:
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
buildPythonPackage rec {
|
2023-10-09 19:29:22 +00:00
|
|
|
pname = "controku";
|
|
|
|
version = "1.1.0";
|
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "benthetechguy";
|
|
|
|
repo = "controku";
|
|
|
|
rev = version;
|
|
|
|
hash = "sha256-sye2GtL3a77pygllZc6ylaIP7faPb+NFbyKKyqJzIXw=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs =
|
|
|
|
[ setuptools ]
|
|
|
|
++ lib.optionals buildApplication [
|
|
|
|
gobject-introspection
|
|
|
|
wrapGAppsHook3
|
|
|
|
];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs =
|
|
|
|
[
|
|
|
|
requests
|
|
|
|
ssdpy
|
|
|
|
]
|
|
|
|
++ lib.optionals buildApplication [
|
|
|
|
gtk3
|
|
|
|
appdirs
|
|
|
|
pygobject3
|
|
|
|
];
|
2023-10-09 19:29:22 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [ "controku" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
changelog = "https://github.com/benthetechguy/controku/releases/tag/${version}";
|
|
|
|
description = "Control Roku devices from the comfort of your own desktop";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "controku";
|
2023-10-09 19:29:22 +00:00
|
|
|
homepage = "https://github.com/benthetechguy/controku";
|
|
|
|
license = licenses.gpl3Only;
|
|
|
|
maintainers = with maintainers; [ mjm ];
|
|
|
|
};
|
|
|
|
}
|