Files
nixpkgs/pkgs/development/python-modules/controku/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

57 lines
1.1 KiB
Nix

{
lib,
fetchFromGitHub,
setuptools,
requests,
ssdpy,
appdirs,
pygobject3,
gobject-introspection,
gtk3,
wrapGAppsHook3,
buildPythonPackage,
buildApplication ? false,
}:
buildPythonPackage rec {
pname = "controku";
version = "1.1.0";
format = "pyproject";
src = fetchFromGitHub {
owner = "benthetechguy";
repo = "controku";
rev = version;
hash = "sha256-sye2GtL3a77pygllZc6ylaIP7faPb+NFbyKKyqJzIXw=";
};
nativeBuildInputs = [
setuptools
]
++ lib.optionals buildApplication [
gobject-introspection
wrapGAppsHook3
];
propagatedBuildInputs = [
requests
ssdpy
]
++ lib.optionals buildApplication [
gtk3
appdirs
pygobject3
];
pythonImportsCheck = [ "controku" ];
meta = {
changelog = "https://github.com/benthetechguy/controku/releases/tag/${version}";
description = "Control Roku devices from the comfort of your own desktop";
mainProgram = "controku";
homepage = "https://github.com/benthetechguy/controku";
license = lib.licenses.gpl3Only;
maintainers = with lib.maintainers; [ mjm ];
};
}