diff --git a/pkgs/development/python-modules/togrill-bluetooth/default.nix b/pkgs/development/python-modules/togrill-bluetooth/default.nix new file mode 100644 index 000000000000..abf75f3bb427 --- /dev/null +++ b/pkgs/development/python-modules/togrill-bluetooth/default.nix @@ -0,0 +1,57 @@ +{ + anyio, + asyncclick, + bleak, + bleak-retry-connector, + buildPythonPackage, + fetchFromGitHub, + hatchling, + lib, + uv-dynamic-versioning, + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "togrill-bluetooth"; + version = "0.8.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "elupus"; + repo = "togrill-bluetooth"; + tag = version; + hash = "sha256-aBuWy8tG722yLzUS62yGdXcETGuH+dX9XVi/qMwEiVg="; + }; + + build-system = [ + hatchling + uv-dynamic-versioning + ]; + + dependencies = [ + bleak + bleak-retry-connector + ]; + + optional-dependencies = { + cli = [ + anyio + asyncclick + ]; + }; + + pythonImportsCheck = [ "togrill_bluetooth" ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + meta = { + changelog = "https://github.com/elupus/togrill-bluetooth/releases/tag/${src.tag}"; + description = "Module to handle communication with ToGrill compatible temperature probes"; + homepage = "https://github.com/elupus/togrill-bluetooth"; + license = lib.licenses.mit; + mainProgram = "togrill-bluetooth"; + maintainers = [ lib.maintainers.dotlambda ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index ea6e1713c941..23a452c6b441 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -18700,6 +18700,8 @@ self: super: with self; { toggl-cli = callPackage ../development/python-modules/toggl-cli { }; + togrill-bluetooth = callPackage ../development/python-modules/togrill-bluetooth { }; + token-bucket = callPackage ../development/python-modules/token-bucket { }; tokenize-rt = callPackage ../development/python-modules/tokenize-rt { };