blob: 5ae7862ea7da6405fbb7b3d72982d40a396a8314 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
pyudev,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "monitorcontrol";
version = "4.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "newAM";
repo = "monitorcontrol";
tag = version;
hash = "sha256-KyVLNZLpzmxABQQiHGniCcND7DwZwpT4gJC+sJihoag=";
};
build-system = [ setuptools ];
dependencies = [ pyudev ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ pname ];
meta = {
description = "Python monitor controls using DDC-CI";
mainProgram = "monitorcontrol";
homepage = "https://github.com/newAM/monitorcontrol";
changelog = "https://github.com/newAM/monitorcontrol/blob/${version}/CHANGELOG.md";
license = lib.licenses.mit;
platforms = lib.platforms.linux;
maintainers = with lib.maintainers; [ newam ];
};
}
|