diff --git a/pkgs/development/python-modules/subarulink/default.nix b/pkgs/development/python-modules/subarulink/default.nix index c0c4fd0c244f..fc0e7c9d8ece 100644 --- a/pkgs/development/python-modules/subarulink/default.nix +++ b/pkgs/development/python-modules/subarulink/default.nix @@ -5,26 +5,30 @@ cryptography, fetchFromGitHub, pytest-asyncio, + pytest-cov-stub, pytestCheckHook, pythonOlder, + setuptools, stdiomask, }: buildPythonPackage rec { pname = "subarulink"; version = "0.7.13"; - format = "setuptools"; + pyproject = true; disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "G-Two"; - repo = pname; + repo = "subarulink"; tag = "v${version}"; hash = "sha256-R6d9BaQDFSobiIsbI1I/eUaJt0VUU2ELdWU9xDyhuFc="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ aiohttp stdiomask ]; @@ -32,14 +36,10 @@ buildPythonPackage rec { nativeCheckInputs = [ cryptography pytest-asyncio + pytest-cov-stub pytestCheckHook ]; - postPatch = '' - substituteInPlace setup.cfg \ - --replace "--cov=subarulink" "" - ''; - __darwinAllowLocalNetworking = true; preCheck = '' @@ -50,10 +50,10 @@ buildPythonPackage rec { meta = with lib; { description = "Python module for interacting with STARLINK-enabled vehicle"; - mainProgram = "subarulink"; homepage = "https://github.com/G-Two/subarulink"; changelog = "https://github.com/G-Two/subarulink/releases/tag/v${version}"; - license = with licenses; [ asl20 ]; + license = licenses.asl20; maintainers = with maintainers; [ fab ]; + mainProgram = "subarulink"; }; }