a0cb138ada
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
47 lines
872 B
Nix
47 lines
872 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, hatchling
|
|
, bluetooth-data-tools
|
|
, httpx
|
|
, pytest-asyncio
|
|
, pytest-httpx
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioruuvigateway";
|
|
version = "0.0.2";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "akx";
|
|
repo = "aioruuvigateway";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-oT5Tlmi9bevOkcVZqg/xvCckIpN7TjbPVQefo9z1RDM=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
hatchling
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
bluetooth-data-tools
|
|
httpx
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytest-httpx
|
|
pytestCheckHook
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "An asyncio-native library for requesting data from a Ruuvi Gateway";
|
|
homepage = "https://github.com/akx/aioruuvigateway";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|
|
|
|
|