python3Packages.weconnect-mqtt: init at 0.20.0
This commit is contained in:
committed by
Jonathan Ringer
parent
3a75d8fe4d
commit
24428bb3ea
@@ -0,0 +1,51 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, pythonOlder
|
||||
, paho-mqtt
|
||||
, weconnect
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "weconnect-mqtt";
|
||||
version = "0.20.0";
|
||||
format = "setuptools";
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "tillsteinbach";
|
||||
repo = "WeConnect-mqtt";
|
||||
rev = "v${version}";
|
||||
sha256 = "sha256-RUOOHVX9IY24ZpDE7nQr//JxtQZgowcT5PrTgzaTK6Q=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
paho-mqtt
|
||||
weconnect
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace weconnect_mqtt/__version.py \
|
||||
--replace "develop" "${version}"
|
||||
substituteInPlace pytest.ini \
|
||||
--replace "--cov=weconnect_mqtt --cov-config=.coveragerc --cov-report html" "" \
|
||||
--replace "pytest-cov" ""
|
||||
'';
|
||||
|
||||
checkInputs = [
|
||||
pytestCheckHook
|
||||
];
|
||||
|
||||
pythonImportsCheck = [
|
||||
"weconnect_mqtt"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python client that publishes data from Volkswagen WeConnect";
|
||||
homepage = "https://github.com/tillsteinbach/WeConnect-mqtt";
|
||||
license = with licenses; [ mit ];
|
||||
maintainers = with maintainers; [ fab ];
|
||||
};
|
||||
}
|
||||
@@ -10076,6 +10076,8 @@ in {
|
||||
|
||||
weconnect = callPackage ../development/python-modules/weconnect { };
|
||||
|
||||
weconnect-mqtt = callPackage ../development/python-modules/weconnect-mqtt { };
|
||||
|
||||
werkzeug = callPackage ../development/python-modules/werkzeug { };
|
||||
|
||||
werkzeug1 = callPackage ../development/python-modules/werkzeug/1.nix { };
|
||||
|
||||
Reference in New Issue
Block a user