From edd1c9b00ea482661b5a2834c6f0584da953a6b0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 12 Feb 2024 16:56:42 +0100 Subject: [PATCH] python311Packages.homeassistant-bring-api: init at 0.1.0 Module to access the Bring! shopping lists API with Home Assistant https://github.com/miaucl/homeassistant-bring-api --- .../homeassistant-bring-api/default.nix | 45 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 47 insertions(+) create mode 100644 pkgs/development/python-modules/homeassistant-bring-api/default.nix diff --git a/pkgs/development/python-modules/homeassistant-bring-api/default.nix b/pkgs/development/python-modules/homeassistant-bring-api/default.nix new file mode 100644 index 000000000000..47730748ae1a --- /dev/null +++ b/pkgs/development/python-modules/homeassistant-bring-api/default.nix @@ -0,0 +1,45 @@ +{ lib +, aiohttp +, buildPythonPackage +, fetchFromGitHub +, setuptools +, pythonOlder +}: + +buildPythonPackage rec { + pname = "homeassistant-bring-api"; + version = "0.1.0"; + pyproject = true; + + disabled = pythonOlder "3.8"; + + src = fetchFromGitHub { + owner = "miaucl"; + repo = "homeassistant-bring-api"; + rev = "refs/tags/${version}"; + hash = "sha256-EQ1Qv4B7axwERKvuMnLizpfA6jRNf/SyB6ktQ2BjFtM="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + aiohttp + ]; + + # Module has no tests + doCheck = false; + + pythonImportsCheck = [ + "homeassistant_bring_api" + ]; + + meta = with lib; { + description = "Module to access the Bring! shopping lists API with Home Assistant"; + homepage = "https://github.com/miaucl/homeassistant-bring-api"; + changelog = "https://github.com/miaucl/homeassistant-bring-api/blob/${version}/CHANGELOG.md"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9c483e790da8..94b8fdb88874 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -5229,6 +5229,8 @@ self: super: with self; { home-assistant-bluetooth = callPackage ../development/python-modules/home-assistant-bluetooth { }; + homeassistant-bring-api = callPackage ../development/python-modules/homeassistant-bring-api { }; + home-assistant-chip-clusters = callPackage ../development/python-modules/home-assistant-chip-clusters { }; home-assistant-chip-core = callPackage ../development/python-modules/home-assistant-chip-core { };