blob: 80c4505175f253e41200c9943543727c7c7c31f9 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
{ lib
, python3Packages
, fetchFromGitHub
, setuptools
, requests
, ssdpy
, appdirs
, pygobject3
, gobject-introspection
, gtk3
, wrapGAppsHook3
, buildApplication ? false
}:
python3Packages.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 = with lib; {
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 = licenses.gpl3Only;
maintainers = with maintainers; [ mjm ];
};
}
|