python312Packages.weconnect: refactor
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user