Use `(enabled|disabled)(TestPaths|TestMarks|Tests)` and `pytestFlags` instead of the `__structuredAttrs`-incompatible `pytestFlagsArray`.
49 lines
936 B
Nix
49 lines
936 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 = with lib; {
|
|
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 = licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|