blob: 5c8b0216bd5f7cc865eb2623076642c565d92025 (
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
|
{
aiohttp,
buildPythonPackage,
fetchFromGitHub,
hatchling,
lib,
pytest-asyncio,
pytest-mock,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pycync";
version = "0.5.0";
pyproject = true;
disabled = pythonOlder "3.13";
src = fetchFromGitHub {
owner = "Kinachi249";
repo = "pycync";
tag = "v${version}";
hash = "sha256-mYHUkenP0FMnwKOdZe4XjC/VnP3JJGPtuVdYR9UcouM=";
};
build-system = [ hatchling ];
dependencies = [
aiohttp
];
pythonImportsCheck = [ "pycync" ];
nativeCheckInputs = [
pytest-asyncio
pytest-mock
pytestCheckHook
];
preCheck = ''
cd tests
'';
meta = {
changelog = "https://github.com/Kinachi249/pycync/releases/tag/${src.tag}";
description = "Python API library for Cync smart devices";
homepage = "https://github.com/Kinachi249/pycync";
license = lib.licenses.gpl3Plus;
maintainers = [ lib.maintainers.dotlambda ];
};
}
|