From 21e5c4a4f8969e645d5275c33c868eab7a355914 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 12 Dec 2024 05:48:02 +0100 Subject: [PATCH] python312Packages.vehicle: refactor --- pkgs/development/python-modules/vehicle/default.nix | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/vehicle/default.nix b/pkgs/development/python-modules/vehicle/default.nix index ba1f1d30fbbe..d75c24a61759 100644 --- a/pkgs/development/python-modules/vehicle/default.nix +++ b/pkgs/development/python-modules/vehicle/default.nix @@ -8,6 +8,7 @@ orjson, poetry-core, pytest-asyncio, + pytest-cov-stub, pytestCheckHook, pythonOlder, syrupy, @@ -17,7 +18,7 @@ buildPythonPackage rec { pname = "vehicle"; version = "2.2.2"; - format = "pyproject"; + pyproject = true; disabled = pythonOlder "3.11"; @@ -32,12 +33,11 @@ buildPythonPackage rec { # Upstream doesn't set a version for the pyproject.toml substituteInPlace pyproject.toml \ --replace "0.0.0" "${version}" \ - --replace "--cov" "" ''; - nativeBuildInputs = [ poetry-core ]; + build-system = [ poetry-core ]; - propagatedBuildInputs = [ + dependencies = [ aiohttp mashumaro orjson @@ -47,6 +47,7 @@ buildPythonPackage rec { nativeCheckInputs = [ aresponses pytest-asyncio + pytest-cov-stub pytestCheckHook syrupy ];