python312Packages.weconnect: refactor

This commit is contained in:
Fabian Affolter
2025-01-11 15:02:30 +01:00
parent 78631b33b5
commit c59db9cf65
@@ -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 ];
};
}