Fabian Affolter 2024-02-28 08:18:40 +01:00
parent 5b0d65938d
commit e4b22d1f92

View File

@ -6,12 +6,13 @@
, paho-mqtt
, python-dateutil
, weconnect
, setuptools
}:
buildPythonPackage rec {
pname = "weconnect-mqtt";
version = "0.48.4";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.8";
@ -23,15 +24,19 @@ buildPythonPackage rec {
};
postPatch = ''
substituteInPlace requirements.txt \
--replace "weconnect[Images]~=" "weconnect>="
substituteInPlace weconnect_mqtt/__version.py \
--replace "develop" "${version}"
--replace-fail "0.0.0dev" "${version}"
substituteInPlace requirements.txt \
--replace-fail "weconnect[Images]~=" "weconnect>="
substituteInPlace pytest.ini \
--replace "--cov=weconnect_mqtt --cov-config=.coveragerc --cov-report html" "" \
--replace "pytest-cov" ""
--replace-fail "--cov=weconnect_mqtt --cov-config=.coveragerc --cov-report html" "" \
--replace-fail "pytest-cov" ""
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
paho-mqtt
python-dateutil