1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 bluetooth-data-tools,
7 httpx,
8 pytest-asyncio,
9 pytest-httpx,
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "aioruuvigateway";
15 version = "0.1.0";
16 format = "pyproject";
17
18 src = fetchFromGitHub {
19 owner = "akx";
20 repo = "aioruuvigateway";
21 tag = "v${version}";
22 hash = "sha256-Etv+kPFYEK79hpDeNmDfuyNj1vJ6udry1u+TRO5gLV4=";
23 };
24
25 nativeBuildInputs = [ hatchling ];
26
27 propagatedBuildInputs = [
28 bluetooth-data-tools
29 httpx
30 ];
31
32 nativeCheckInputs = [
33 pytest-asyncio
34 pytest-httpx
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [ "aioruuvigateway" ];
39
40 meta = with lib; {
41 description = "Asyncio-native library for requesting data from a Ruuvi Gateway";
42 homepage = "https://github.com/akx/aioruuvigateway";
43 license = licenses.mit;
44 maintainers = with maintainers; [ hexa ];
45 };
46}