Files
nixpkgs/pkgs/development/python-modules/aiomqtt/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

49 lines
930 B
Nix

{
lib,
anyio,
buildPythonPackage,
fetchFromGitHub,
hatchling,
paho-mqtt,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "aiomqtt";
version = "2.4.0";
pyproject = true;
disabled = pythonOlder "3.10";
src = fetchFromGitHub {
owner = "sbtinstruments";
repo = "aiomqtt";
tag = "v${version}";
hash = "sha256-b7kCLpJzZGx8YpC0M4O4fqFh3xP73CXFWbKaggD6bOI=";
};
build-system = [ hatchling ];
dependencies = [ paho-mqtt ];
nativeCheckInputs = [
anyio
pytestCheckHook
];
pythonImportsCheck = [ "aiomqtt" ];
disabledTestMarks = [
"network"
];
meta = {
description = "Idiomatic asyncio MQTT client, wrapped around paho-mqtt";
homepage = "https://github.com/sbtinstruments/aiomqtt";
changelog = "https://github.com/sbtinstruments/aiomqtt/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}