From 1a01865c086645cc71a344563ac99fc30ec4ec3b Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 28 Dec 2024 11:11:32 +0100 Subject: [PATCH 1/2] python312Packages.python-homeassistant-analytics: 0.8.0 -> 0.8.1 Diff: https://github.com/joostlek/python-homeassistant-analytics/compare/refs/tags/v0.8.0...v0.8.1 Changelog: https://github.com/joostlek/python-homeassistant-analytics/releases/tag/v0.8.1 --- .../python-modules/python-homeassistant-analytics/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/python-homeassistant-analytics/default.nix b/pkgs/development/python-modules/python-homeassistant-analytics/default.nix index 4433e441b6cb..d882c33c65c4 100644 --- a/pkgs/development/python-modules/python-homeassistant-analytics/default.nix +++ b/pkgs/development/python-modules/python-homeassistant-analytics/default.nix @@ -22,7 +22,7 @@ buildPythonPackage rec { pname = "python-homeassistant-analytics"; - version = "0.8.0"; + version = "0.8.1"; pyproject = true; disabled = pythonOlder "3.11"; @@ -31,7 +31,7 @@ buildPythonPackage rec { owner = "joostlek"; repo = "python-homeassistant-analytics"; rev = "refs/tags/v${version}"; - hash = "sha256-vyJseIYFmbxUYieZB0r3Z3j6/ZHmgs7ONa5YKQTwAXw="; + hash = "sha256-TfD1N4KoeIVoDp1YoOhBw8E7adow1nU1N6vj2j3W2No="; }; postPatch = '' From 55a3ead0a734881e7de5007296d0410e5daebc90 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 28 Dec 2024 11:13:35 +0100 Subject: [PATCH 2/2] python312Packages.python-homeassistant-analytics: refactor --- .../python-homeassistant-analytics/default.nix | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pkgs/development/python-modules/python-homeassistant-analytics/default.nix b/pkgs/development/python-modules/python-homeassistant-analytics/default.nix index d882c33c65c4..0a30076c9e9b 100644 --- a/pkgs/development/python-modules/python-homeassistant-analytics/default.nix +++ b/pkgs/development/python-modules/python-homeassistant-analytics/default.nix @@ -16,6 +16,7 @@ # tests pytestCheckHook, aioresponses, + pytest-cov-stub, pytest-asyncio, syrupy, }: @@ -34,11 +35,6 @@ buildPythonPackage rec { hash = "sha256-TfD1N4KoeIVoDp1YoOhBw8E7adow1nU1N6vj2j3W2No="; }; - postPatch = '' - substituteInPlace pyproject.toml \ - --replace-fail "--cov" "" - ''; - build-system = [ poetry-core ]; dependencies = [ @@ -51,6 +47,7 @@ buildPythonPackage rec { nativeCheckInputs = [ pytestCheckHook aioresponses + pytest-cov-stub pytest-asyncio syrupy ]; @@ -58,10 +55,9 @@ buildPythonPackage rec { pythonImportsCheck = [ "python_homeassistant_analytics" ]; meta = with lib; { + description = "Asynchronous Python client for Home Assistant Analytics"; changelog = "https://github.com/joostlek/python-homeassistant-analytics/releases/tag/v${version}"; - description = "Asynchronous Python client for Homeassistant Analytics"; - homepage = "https://github.com/joostlek/python-homeassistant-analytics -"; + homepage = "https://github.com/joostlek/python-homeassistant-analytics"; license = licenses.mit; maintainers = with maintainers; [ jamiemagee ]; };