nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 anyio,
4 buildPythonPackage,
5 fetchFromGitHub,
6 hatchling,
7 paho-mqtt,
8 pytestCheckHook,
9}:
10
11buildPythonPackage rec {
12 pname = "aiomqtt";
13 version = "2.5.0";
14 pyproject = true;
15
16 src = fetchFromGitHub {
17 owner = "sbtinstruments";
18 repo = "aiomqtt";
19 tag = "v${version}";
20 hash = "sha256-S18jHHM1r077du/EO3WvCwLaYF70tIGdHatFxuTPhBs=";
21 };
22
23 build-system = [ hatchling ];
24
25 dependencies = [ paho-mqtt ];
26
27 nativeCheckInputs = [
28 anyio
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "aiomqtt" ];
33
34 disabledTestMarks = [
35 "network"
36 ];
37
38 meta = {
39 description = "Idiomatic asyncio MQTT client, wrapped around paho-mqtt";
40 homepage = "https://github.com/sbtinstruments/aiomqtt";
41 changelog = "https://github.com/sbtinstruments/aiomqtt/blob/${src.tag}/CHANGELOG.md";
42 license = lib.licenses.bsd3;
43 maintainers = [ ];
44 };
45}