depot/third_party/nixpkgs/pkgs/development/python-modules/asyncio_mqtt/default.nix
Default email 1be0098156 Project import generated by Copybara.
GitOrigin-RevId: 667e5581d16745bcda791300ae7e2d73f49fff25
2022-11-04 13:27:35 +01:00

43 lines
964 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, paho-mqtt
, pythonOlder
, typing-extensions
}:
buildPythonPackage rec {
pname = "asyncio-mqtt";
version = "0.13.0";
format = "setuptools";
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.10") [
typing-extensions
];
# Module will have tests starting with > 0.13.0
doCheck = false;
pythonImportsCheck = [
"asyncio_mqtt"
];
meta = with lib; {
description = "Idomatic asyncio wrapper around paho-mqtt";
homepage = "https://github.com/sbtinstruments/asyncio-mqtt";
license = licenses.bsd3;
changelog = "https://github.com/sbtinstruments/asyncio-mqtt/blob/master/CHANGELOG.md";
maintainers = with maintainers; [ hexa ];
};
}