diff --git a/pkgs/development/python-modules/aioruuvigateway/default.nix b/pkgs/development/python-modules/aioruuvigateway/default.nix new file mode 100644 index 000000000000..36f08874e926 --- /dev/null +++ b/pkgs/development/python-modules/aioruuvigateway/default.nix @@ -0,0 +1,47 @@ +{ 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 ]; + }; +} + + diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 92346f0e38a7..dd6d1d2a6c7f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -308,6 +308,8 @@ self: super: with self; { aiorun = callPackage ../development/python-modules/aiorun { }; + aioruuvigateway = callPackage ../development/python-modules/aioruuvigateway { }; + aiorwlock = callPackage ../development/python-modules/aiorwlock { }; aiosenseme = callPackage ../development/python-modules/aiosenseme { };