1{ lib 2, python3Packages 3, fetchFromGitHub 4, setuptools 5, requests 6, ssdpy 7, appdirs 8, pygobject3 9, gobject-introspection 10, gtk3 11, wrapGAppsHook 12, buildApplication ? false 13}: 14 15python3Packages.buildPythonPackage rec { 16 pname = "controku"; 17 version = "1.1.0"; 18 format = "pyproject"; 19 20 src = fetchFromGitHub { 21 owner = "benthetechguy"; 22 repo = "controku"; 23 rev = version; 24 hash = "sha256-sye2GtL3a77pygllZc6ylaIP7faPb+NFbyKKyqJzIXw="; 25 }; 26 27 nativeBuildInputs = [ 28 setuptools 29 ] ++ lib.optionals buildApplication [ 30 gobject-introspection 31 wrapGAppsHook 32 ]; 33 34 propagatedBuildInputs = [ 35 requests 36 ssdpy 37 ] ++ lib.optionals buildApplication [ 38 gtk3 39 appdirs 40 pygobject3 41 ]; 42 43 pythonImportsCheck = [ "controku" ]; 44 45 meta = with lib; { 46 changelog = "https://github.com/benthetechguy/controku/releases/tag/${version}"; 47 description = "Control Roku devices from the comfort of your own desktop"; 48 homepage = "https://github.com/benthetechguy/controku"; 49 license = licenses.gpl3Only; 50 maintainers = with maintainers; [ mjm ]; 51 }; 52}