From b00a0638d3a51a7816711d827e2f19736072f5f2 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Wed, 13 Aug 2025 01:40:47 +0200 Subject: [PATCH] python313Packages.velbus-aio: migrate to writableTmpDirAsHomeHook --- pkgs/development/python-modules/velbus-aio/default.nix | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/velbus-aio/default.nix b/pkgs/development/python-modules/velbus-aio/default.nix index b49831a7b832..7f44876d2b09 100644 --- a/pkgs/development/python-modules/velbus-aio/default.nix +++ b/pkgs/development/python-modules/velbus-aio/default.nix @@ -10,6 +10,7 @@ pytest-asyncio, pytestCheckHook, setuptools, + writableTmpDirAsHomeHook, }: buildPythonPackage rec { @@ -17,7 +18,7 @@ buildPythonPackage rec { version = "2025.5.0"; pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.9"; src = fetchFromGitHub { owner = "Cereal2nd"; @@ -39,19 +40,16 @@ buildPythonPackage rec { nativeCheckInputs = [ pytest-asyncio pytestCheckHook + writableTmpDirAsHomeHook ]; - preCheck = '' - export HOME=$(mktemp -d) - ''; - pythonImportsCheck = [ "velbusaio" ]; meta = with lib; { description = "Python library to support the Velbus home automation system"; homepage = "https://github.com/Cereal2nd/velbus-aio"; changelog = "https://github.com/Cereal2nd/velbus-aio/releases/tag/${src.tag}"; - license = with licenses; [ asl20 ]; + license = licenses.asl20; maintainers = with maintainers; [ fab ]; }; }