blob: 154da949a276ec39cb971578033bad12f0e00a8a (
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
40
41
42
43
44
45
46
47
48
49
50
51
52
|
{
lib,
async-timeout,
buildPythonPackage,
fetchFromGitHub,
webcolors,
pytest-asyncio,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "flux-led";
version = "1.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "Danielhiversen";
repo = "flux_led";
tag = version;
hash = "sha256-+i+/WMHdz4HPKDlRPV1Aq9QqrTo5gZiulSc7Hinn+kI=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail '"pytest-runner>=5.2",' ""
'';
build-system = [ setuptools ];
dependencies = [
async-timeout
webcolors
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "flux_led" ];
meta = {
description = "Python library to communicate with the flux_led smart bulbs";
homepage = "https://github.com/Danielhiversen/flux_led";
changelog = "https://github.com/Danielhiversen/flux_led/releases/tag/${version}";
license = lib.licenses.lgpl3Plus;
maintainers = [ ];
platforms = lib.platforms.linux;
mainProgram = "flux_led";
};
}
|