blob: 1defc1f5233d98477229f45667f5afe0de02f4a3 (
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
53
54
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
aiohttp,
semver,
deepmerge,
jmespath,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "blebox-uniapi";
version = "2.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "blebox";
repo = "blebox_uniapi";
tag = "v${version}";
hash = "sha256-johTs1AGvC6mGasK87ijhBNbHb1m36Ep9TR8XPG35d0=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "pytest-runner" ""
'';
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
aiohttp
jmespath
semver
];
nativeCheckInputs = [
deepmerge
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "blebox_uniapi" ];
meta = {
changelog = "https://github.com/blebox/blebox_uniapi/blob/v${version}/HISTORY.rst";
description = "Python API for accessing BleBox smart home devices";
homepage = "https://github.com/blebox/blebox_uniapi";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
|