From 8ab7ed3fa6570d5775f2b0457e68020c7d2d4cc1 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 21 Oct 2021 16:43:28 +0200 Subject: [PATCH] python3Packages.paho-mqtt: 1.56.1 -> 1.6.1 --- .../python-modules/paho-mqtt/default.nix | 34 ++++++++++++++----- 1 file changed, 25 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/paho-mqtt/default.nix b/pkgs/development/python-modules/paho-mqtt/default.nix index e8344e88f110..341ef8321835 100644 --- a/pkgs/development/python-modules/paho-mqtt/default.nix +++ b/pkgs/development/python-modules/paho-mqtt/default.nix @@ -1,30 +1,46 @@ -{ lib, buildPythonPackage, fetchFromGitHub, isPy3k -, stdenv, pytest-runner, pytest, mock }: +{ lib +, stdenv +, buildPythonPackage +, fetchFromGitHub +, isPy3k +, pytestCheckHook +, mock +}: buildPythonPackage rec { pname = "paho-mqtt"; - version = "1.5.1"; + version = "1.6.1"; - # No tests in PyPI tarball src = fetchFromGitHub { owner = "eclipse"; repo = "paho.mqtt.python"; rev = "v${version}"; - sha256 = "1y537i6zxkjkmi80w5rvd18npz1jm5246i2x8p3q7ycx94i8ixs0"; + sha256 = "sha256-9nH6xROVpmI+iTKXfwv2Ar1PAmWbEunI3HO0pZyK6Rg="; }; postPatch = '' - substituteInPlace setup.py --replace "pylama" "" - substituteInPlace setup.cfg --replace "--pylama" "" + substituteInPlace setup.py \ + --replace "pylama" "" \ + --replace "'pytest-runner'" "" + substituteInPlace setup.cfg \ + --replace "--pylama" "" ''; - checkInputs = [ pytest-runner pytest ] ++ lib.optional (!isPy3k) mock; + checkInputs = [ + pytestCheckHook + ] ++ lib.optional (!isPy3k) [ + mock + ]; doCheck = !stdenv.isDarwin; + pythonImportsCheck = [ + "paho.mqtt" + ]; + meta = with lib; { - homepage = "https://eclipse.org/paho"; description = "MQTT version 3.1.1 client class"; + homepage = "https://eclipse.org/paho"; license = licenses.epl10; maintainers = with maintainers; [ mog dotlambda ]; };