0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 14:10:33 +03:00

python312Packages.weconnect-mqtt: refactor

This commit is contained in:
Fabian Affolter 2024-05-22 11:34:58 +02:00
parent 8a26ddc1eb
commit a9e84f8a8a

View file

@ -1,12 +1,13 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, paho-mqtt
, pytestCheckHook
, python-dateutil
, weconnect
, pythonOlder
, pythonRelaxDepsHook
, setuptools
, weconnect
}:
buildPythonPackage rec {
@ -33,11 +34,19 @@ buildPythonPackage rec {
--replace-fail "pytest-cov" ""
'';
nativeBuildInputs = [
pythonRelaxDeps = [
"python-dateutil"
];
build-system = [
setuptools
];
propagatedBuildInputs = [
nativeBuildInputs = [
pythonRelaxDepsHook
];
dependencies = [
paho-mqtt
python-dateutil
weconnect
@ -53,10 +62,10 @@ buildPythonPackage rec {
meta = with lib; {
description = "Python client that publishes data from Volkswagen WeConnect";
mainProgram = "weconnect-mqtt";
homepage = "https://github.com/tillsteinbach/WeConnect-mqtt";
changelog = "https://github.com/tillsteinbach/WeConnect-mqtt/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
mainProgram = "weconnect-mqtt";
};
}