python313Packages.subarulink: refactor

This commit is contained in:
Fabian Affolter
2025-08-13 01:33:19 +02:00
parent 65f159654d
commit 855cb1da14
@@ -10,6 +10,7 @@
pythonOlder,
setuptools,
stdiomask,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
@@ -17,7 +18,7 @@ buildPythonPackage rec {
version = "0.7.14";
pyproject = true;
disabled = pythonOlder "3.7";
disabled = pythonOlder "3.12";
src = fetchFromGitHub {
owner = "G-Two";
@@ -38,20 +39,17 @@ buildPythonPackage rec {
pytest-asyncio
pytest-cov-stub
pytestCheckHook
writableTmpDirAsHomeHook
];
__darwinAllowLocalNetworking = true;
preCheck = ''
export HOME=$(mktemp -d)
'';
pythonImportsCheck = [ "subarulink" ];
meta = with lib; {
description = "Python module for interacting with STARLINK-enabled vehicle";
homepage = "https://github.com/G-Two/subarulink";
changelog = "https://github.com/G-Two/subarulink/releases/tag/v${version}";
changelog = "https://github.com/G-Two/subarulink/releases/tag/${src.tag}";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
mainProgram = "subarulink";