13 buildPythonPackage rec {
14 pname = "weconnect-mqtt";
18 disabled = pythonOlder "3.8";
20 src = fetchFromGitHub {
21 owner = "tillsteinbach";
22 repo = "WeConnect-mqtt";
23 rev = "refs/tags/v${version}";
24 hash = "sha256-jTScDPTj7aIQcGuL2g8MvuYln6iaj6abEyCfd8vvT2I=";
28 substituteInPlace weconnect_mqtt/__version.py \
29 --replace-fail "0.0.0dev" "${version}"
30 substituteInPlace requirements.txt \
31 --replace-fail "weconnect[Images]~=" "weconnect>="
32 substituteInPlace pytest.ini \
33 --replace-fail "--cov=weconnect_mqtt --cov-config=.coveragerc --cov-report html" "" \
34 --replace-fail "pytest-cov" ""
37 pythonRelaxDeps = [ "python-dateutil" ];
39 build-system = [ setuptools ];
46 ] ++ weconnect.optional-dependencies.Images;
48 nativeCheckInputs = [ pytestCheckHook ];
50 pythonImportsCheck = [ "weconnect_mqtt" ];
53 description = "Python client that publishes data from Volkswagen WeConnect";
54 homepage = "https://github.com/tillsteinbach/WeConnect-mqtt";
55 changelog = "https://github.com/tillsteinbach/WeConnect-mqtt/releases/tag/v${version}";
56 license = with licenses; [ mit ];
57 maintainers = with maintainers; [ fab ];
58 mainProgram = "weconnect-mqtt";