From b0d47a8656e92ea383b6738d67c7c791f3a7e6a9 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 4 Apr 2024 22:04:01 +0200 Subject: [PATCH 1/3] python312Packages.hass-nabucasa: 0.79.0 -> 0.80.0 Diff: https://github.com/nabucasa/hass-nabucasa/compare/refs/tags/0.79.0...0.80.0 Changelog: https://github.com/NabuCasa/hass-nabucasa/releases/tag/0.80.0 --- pkgs/development/python-modules/hass-nabucasa/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/hass-nabucasa/default.nix b/pkgs/development/python-modules/hass-nabucasa/default.nix index 9ee4c0e3f968..6fa5f597d0b0 100644 --- a/pkgs/development/python-modules/hass-nabucasa/default.nix +++ b/pkgs/development/python-modules/hass-nabucasa/default.nix @@ -22,7 +22,7 @@ buildPythonPackage rec { pname = "hass-nabucasa"; - version = "0.79.0"; + version = "0.80.0"; pyproject = true; disabled = pythonOlder "3.11"; @@ -31,7 +31,7 @@ buildPythonPackage rec { owner = "nabucasa"; repo = "hass-nabucasa"; rev = "refs/tags/${version}"; - hash = "sha256-7VhafefF7imvnhdFo6K+18h5kmXvIatKerJ+Qn5zwdQ="; + hash = "sha256-8KxnS6LTK077/hr81JOiOj8GaNWBXO8XlvpYBm/sZbI="; }; nativeBuildInputs = [ From eb0b1a9e1520baf584e35a03a868e54cfab8f7e4 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 4 Apr 2024 22:05:27 +0200 Subject: [PATCH 2/3] python312Packages.hass-nabucasa: refactor --- .../python-modules/hass-nabucasa/default.nix | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/hass-nabucasa/default.nix b/pkgs/development/python-modules/hass-nabucasa/default.nix index 6fa5f597d0b0..aa294c99eeea 100644 --- a/pkgs/development/python-modules/hass-nabucasa/default.nix +++ b/pkgs/development/python-modules/hass-nabucasa/default.nix @@ -34,16 +34,19 @@ buildPythonPackage rec { hash = "sha256-8KxnS6LTK077/hr81JOiOj8GaNWBXO8XlvpYBm/sZbI="; }; - nativeBuildInputs = [ - setuptools - pythonRelaxDepsHook - ]; - pythonRelaxDeps = [ "acme" ]; - propagatedBuildInputs = [ + nativeBuildInputs = [ + pythonRelaxDepsHook + ]; + + build-system = [ + setuptools + ]; + + dependencies = [ acme aiohttp atomicwrites-homeassistant @@ -68,8 +71,8 @@ buildPythonPackage rec { ]; meta = with lib; { - homepage = "https://github.com/NabuCasa/hass-nabucasa"; description = "Python module for the Home Assistant cloud integration"; + homepage = "https://github.com/NabuCasa/hass-nabucasa"; changelog = "https://github.com/NabuCasa/hass-nabucasa/releases/tag/${version}"; license = licenses.gpl3Only; maintainers = with maintainers; [ Scriptkiddi ]; From a2ab67087973dc82fda9ec35532db2e0675d7c93 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 4 Apr 2024 22:06:56 +0200 Subject: [PATCH 3/3] python312Packages.hass-nabucasa: format with nixfmt --- .../python-modules/hass-nabucasa/default.nix | 57 ++++++++----------- 1 file changed, 25 insertions(+), 32 deletions(-) diff --git a/pkgs/development/python-modules/hass-nabucasa/default.nix b/pkgs/development/python-modules/hass-nabucasa/default.nix index aa294c99eeea..ac32e43cf932 100644 --- a/pkgs/development/python-modules/hass-nabucasa/default.nix +++ b/pkgs/development/python-modules/hass-nabucasa/default.nix @@ -1,23 +1,24 @@ -{ lib -, acme -, aiohttp -, atomicwrites-homeassistant -, attrs -, buildPythonPackage -, ciso8601 -, cryptography -, fetchFromGitHub -, pycognito -, pyjwt -, pytest-aiohttp -, pytest-timeout -, pytestCheckHook -, pythonOlder -, pythonRelaxDepsHook -, setuptools -, snitun -, syrupy -, xmltodict +{ + lib, + acme, + aiohttp, + atomicwrites-homeassistant, + attrs, + buildPythonPackage, + ciso8601, + cryptography, + fetchFromGitHub, + pycognito, + pyjwt, + pytest-aiohttp, + pytest-timeout, + pytestCheckHook, + pythonOlder, + pythonRelaxDepsHook, + setuptools, + snitun, + syrupy, + xmltodict, }: buildPythonPackage rec { @@ -34,17 +35,11 @@ buildPythonPackage rec { hash = "sha256-8KxnS6LTK077/hr81JOiOj8GaNWBXO8XlvpYBm/sZbI="; }; - pythonRelaxDeps = [ - "acme" - ]; + pythonRelaxDeps = [ "acme" ]; - nativeBuildInputs = [ - pythonRelaxDepsHook - ]; + nativeBuildInputs = [ pythonRelaxDepsHook ]; - build-system = [ - setuptools - ]; + build-system = [ setuptools ]; dependencies = [ acme @@ -66,9 +61,7 @@ buildPythonPackage rec { xmltodict ]; - pythonImportsCheck = [ - "hass_nabucasa" - ]; + pythonImportsCheck = [ "hass_nabucasa" ]; meta = with lib; { description = "Python module for the Home Assistant cloud integration";