2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
hatchling,
|
|
|
|
bluetooth-data-tools,
|
|
|
|
httpx,
|
|
|
|
pytest-asyncio,
|
|
|
|
pytest-httpx,
|
|
|
|
pytestCheckHook,
|
2023-02-02 18:25:31 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "aioruuvigateway";
|
2023-04-29 16:46:19 +00:00
|
|
|
version = "0.1.0";
|
2023-02-02 18:25:31 +00:00
|
|
|
format = "pyproject";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "akx";
|
|
|
|
repo = "aioruuvigateway";
|
|
|
|
rev = "refs/tags/v${version}";
|
2023-04-29 16:46:19 +00:00
|
|
|
hash = "sha256-Etv+kPFYEK79hpDeNmDfuyNj1vJ6udry1u+TRO5gLV4=";
|
2023-02-02 18:25:31 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ hatchling ];
|
2023-02-02 18:25:31 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
bluetooth-data-tools
|
|
|
|
httpx
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytest-asyncio
|
|
|
|
pytest-httpx
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "aioruuvigateway" ];
|
2023-02-22 10:55:15 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Asyncio-native library for requesting data from a Ruuvi Gateway";
|
2023-02-02 18:25:31 +00:00
|
|
|
homepage = "https://github.com/akx/aioruuvigateway";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|