Merge pull request #121776 from fabaff/bump-roombapy

This commit is contained in:
Martin Weinelt 2021-05-08 21:49:00 +02:00 committed by GitHub
commit af9d0dde55
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 88 additions and 10 deletions

View File

@ -0,0 +1,64 @@
{ lib
, buildPythonPackage
, docopt
, fetchFromGitHub
, hypothesis
, passlib
, poetry-core
, pytest-asyncio
, pytestCheckHook
, pythonOlder
, pyyaml
, transitions
, websockets
}:
buildPythonPackage rec {
pname = "amqtt";
version = "0.10.0-alpha.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "Yakifo";
repo = pname;
rev = "v${version}";
sha256 = "0wz85ykjgi2174qcdgpakmc4m0p96v62az7pvc9hyallq1v1k4n6";
};
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
docopt
passlib
pyyaml
transitions
websockets
];
checkInputs = [
hypothesis
pytest-asyncio
pytestCheckHook
];
disabledTestPaths = [
# Test are not ported from hbmqtt yet
"tests/test_cli.py"
"tests/test_client.py"
];
disabledTests = [
# Requires network access
"test_connect_tcp"
];
pythonImportsCheck = [ "amqtt" ];
meta = with lib; {
description = "Python MQTT client and broker implementation";
homepage = "https://amqtt.readthedocs.io/";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}

View File

@ -1,31 +1,42 @@
{ buildPythonPackage { lib
, amqtt
, buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, hbmqtt
, lib
, paho-mqtt , paho-mqtt
, poetry , poetry-core
, pytest-asyncio , pytest-asyncio
, pytestCheckHook , pytestCheckHook
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "roombapy"; pname = "roombapy";
version = "1.6.2-1"; version = "1.6.3";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "pschmitt"; owner = "pschmitt";
repo = "roombapy"; repo = "roombapy";
rev = version; rev = version;
sha256 = "14k7bys479xwpa4alpdwphzmxm3x8kc48nfqnshn1wj94vyxc425"; sha256 = "sha256-GkDfIC2jx4Mpguk/Wu45pZw0czhabJwTz58WYSLCOV8=";
}; };
format = "pyproject"; nativeBuildInputs = [ poetry-core ];
nativeBuildInputs = [ poetry ];
propagatedBuildInputs = [ paho-mqtt ]; propagatedBuildInputs = [ paho-mqtt ];
checkInputs = [ hbmqtt pytest-asyncio pytestCheckHook ]; checkInputs = [
pytestFlagsArray = [ "tests/" "--ignore=tests/test_discovery.py" ]; amqtt
pytest-asyncio
pytestCheckHook
];
disabledTestPaths = [
# Requires network access
"tests/test_discovery.py"
];
pythonImportsCheck = [ "roombapy" ]; pythonImportsCheck = [ "roombapy" ];
meta = with lib; { meta = with lib; {

View File

@ -333,6 +333,7 @@ in with py.pkgs; buildPythonApplication rec {
"rituals_perfume_genie" "rituals_perfume_genie"
"rmvtransport" "rmvtransport"
"roku" "roku"
"roomba"
"rss_feed_template" "rss_feed_template"
"ruckus_unleashed" "ruckus_unleashed"
"safe_mode" "safe_mode"

View File

@ -387,6 +387,8 @@ in {
amqplib = callPackage ../development/python-modules/amqplib { }; amqplib = callPackage ../development/python-modules/amqplib { };
amqtt = callPackage ../development/python-modules/amqtt { };
android-backup = callPackage ../development/python-modules/android-backup { }; android-backup = callPackage ../development/python-modules/android-backup { };
androidtv = callPackage ../development/python-modules/androidtv { }; androidtv = callPackage ../development/python-modules/androidtv { };