Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
909 B
Nix
47 lines
909 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
bluetooth-data-tools,
|
|
httpx,
|
|
pytest-asyncio,
|
|
pytest-httpx,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioruuvigateway";
|
|
version = "0.1.0";
|
|
format = "pyproject";
|
|
|
|
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 = with lib; {
|
|
description = "Asyncio-native library for requesting data from a Ruuvi Gateway";
|
|
homepage = "https://github.com/akx/aioruuvigateway";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|