summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/aioruuvigateway/default.nix
blob: 1a11cc1e6e26a32e71b28eb8d8abc7cb8d69b8e5 (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
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  bluetooth-data-tools,
  httpx,
  pytest-asyncio,
  pytest-httpx,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "aioruuvigateway";
  version = "0.1.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "akx";
    repo = "aioruuvigateway";
    tag = "v${version}";
    hash = "sha256-Etv+kPFYEK79hpDeNmDfuyNj1vJ6udry1u+TRO5gLV4=";
  };

  nativeBuildInputs = [ hatchling ];

  propagatedBuildInputs = [
    bluetooth-data-tools
    httpx
  ];

  nativeCheckInputs = [
    pytest-asyncio
    pytest-httpx
    pytestCheckHook
  ];

  pythonImportsCheck = [ "aioruuvigateway" ];

  meta = {
    description = "Asyncio-native library for requesting data from a Ruuvi Gateway";
    homepage = "https://github.com/akx/aioruuvigateway";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ hexa ];
  };
}