From c59db9cf651d8c2b6aee12df78b5d83a335b161d Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 11 Jan 2025 12:50:26 +0100 Subject: [PATCH] python312Packages.weconnect: refactor --- .../python-modules/weconnect/default.nix | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/weconnect/default.nix b/pkgs/development/python-modules/weconnect/default.nix index ea09e36a8647..c4d08efb46d7 100644 --- a/pkgs/development/python-modules/weconnect/default.nix +++ b/pkgs/development/python-modules/weconnect/default.nix @@ -5,6 +5,7 @@ fetchFromGitHub, oauthlib, pillow, + pytest-cov-stub, pytestCheckHook, pythonOlder, requests, @@ -32,13 +33,12 @@ buildPythonPackage rec { --replace-fail "setup_requires=SETUP_REQUIRED" "setup_requires=[]" \ --replace-fail "tests_require=TEST_REQUIRED" "tests_require=[]" substituteInPlace pytest.ini \ - --replace-fail "--cov=weconnect --cov-config=.coveragerc --cov-report html" "" \ --replace-fail "required_plugins = pytest-cov" "" ''; - nativeBuildInputs = [ setuptools ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ + dependencies = [ oauthlib requests ]; @@ -50,7 +50,10 @@ buildPythonPackage rec { ]; }; - nativeCheckInputs = [ pytestCheckHook ]; + nativeCheckInputs = [ + pytest-cov-stub + pytestCheckHook + ]; pythonImportsCheck = [ "weconnect" ]; @@ -58,7 +61,7 @@ buildPythonPackage rec { description = "Python client for the Volkswagen WeConnect Services"; homepage = "https://github.com/tillsteinbach/WeConnect-python"; changelog = "https://github.com/tillsteinbach/WeConnect-python/releases/tag/v${version}"; - license = with licenses; [ mit ]; + license = licenses.mit; maintainers = with maintainers; [ fab ]; }; }