python310Packages.asyncio-mqtt: 0.12.1 -> 0.13.0

This commit is contained in:
Fabian Affolter 2022-11-05 01:05:17 +01:00
parent 16d97ba766
commit 665eb10e24

View File

@ -1,31 +1,37 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, async_generator
, fetchFromGitHub
, paho-mqtt
, pythonOlder
, typing-extensions
}:
buildPythonPackage rec {
pname = "asyncio-mqtt";
version = "0.12.1";
version = "0.13.0";
format = "setuptools";
src = fetchPypi {
pname = "asyncio_mqtt";
inherit version;
sha256 = "sha256-bb+FpF+U0m50ZUEWgK2jlHtQVG6YII1dUuegp+16fDg=";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "sbtinstruments";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-On4N5KPnbwYrJguWwBdrnaNq58ZeGIPYSFzIRBfojpQ=";
};
propagatedBuildInputs = [
paho-mqtt
] ++ lib.optionals (pythonOlder "3.7") [
async_generator
] ++ lib.optionals (pythonOlder "3.10") [
typing-extensions
];
doCheck = false; # no tests
# Module will have tests starting with > 0.13.0
doCheck = false;
pythonImportsCheck = [ "asyncio_mqtt" ];
pythonImportsCheck = [
"asyncio_mqtt"
];
meta = with lib; {
description = "Idomatic asyncio wrapper around paho-mqtt";