2023-02-01 23:10:34 +00:00
|
|
|
{ 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
|
|
|
|
];
|
|
|
|
|
2023-02-19 14:45:39 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"aioruuvigateway"
|
|
|
|
];
|
|
|
|
|
2023-02-01 23:10:34 +00:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|