1{
2 async-timeout,
3 buildPythonPackage,
4 fetchFromGitHub,
5 httpx,
6 lib,
7 pydantic,
8 pytest-asyncio,
9 pytestCheckHook,
10 setuptools,
11}:
12
13buildPythonPackage rec {
14 pname = "lektricowifi";
15 version = "0.1";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "Lektrico";
20 repo = "lektricowifi";
21 tag = "v.${version}";
22 hash = "sha256-GkRZ+fBjLtiZ3dPsn/xeJ7c0cVMY6SHIs+wqhmXXOTk=";
23 };
24
25 build-system = [ setuptools ];
26
27 pythonRelaxDeps = [
28 "pydantic"
29 ];
30
31 dependencies = [
32 async-timeout
33 httpx
34 pydantic
35 ];
36
37 pythonImportsCheck = [ "lektricowifi" ];
38
39 nativeCheckInputs = [
40 pytest-asyncio
41 pytestCheckHook
42 ];
43
44 # AttributeError: type object 'InfoForCharger' has no attribute 'from_dict'
45 doCheck = false;
46
47 meta = {
48 description = "Communication with Lektrico's chargers";
49 homepage = "https://github.com/Lektrico/lektricowifi";
50 license = lib.licenses.mit;
51 maintainers = with lib.maintainers; [ dotlambda ];
52 };
53}