14 buildPythonPackage rec {
15 pname = "weconnect-mqtt";
19 disabled = pythonOlder "3.8";
21 src = fetchFromGitHub {
22 owner = "tillsteinbach";
23 repo = "WeConnect-mqtt";
25 hash = "sha256-jTScDPTj7aIQcGuL2g8MvuYln6iaj6abEyCfd8vvT2I=";
29 substituteInPlace weconnect_mqtt/__version.py \
30 --replace-fail "0.0.0dev" "${version}"
31 substituteInPlace requirements.txt \
32 --replace-fail "weconnect[Images]~=" "weconnect>="
33 substituteInPlace pytest.ini \
34 --replace-fail "required_plugins = pytest-cov" ""
37 pythonRelaxDeps = [ "python-dateutil" ];
39 build-system = [ setuptools ];
45 ] ++ weconnect.optional-dependencies.Images;
52 pythonImportsCheck = [ "weconnect_mqtt" ];
55 description = "Python client that publishes data from Volkswagen WeConnect";
56 homepage = "https://github.com/tillsteinbach/WeConnect-mqtt";
57 changelog = "https://github.com/tillsteinbach/WeConnect-mqtt/releases/tag/v${version}";
58 license = lib.licenses.mit;
59 maintainers = with lib.maintainers; [ fab ];
60 mainProgram = "weconnect-mqtt";