at master 775 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 6 # build-system 7 setuptools, 8 9 # tests 10 pytestCheckHook, 11 pytest-asyncio, 12}: 13 14buildPythonPackage rec { 15 pname = "gmqtt"; 16 version = "0.7.0"; 17 pyproject = true; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-vt/se6wmtrTOHwxMMs/z1mNSalTIgtMj1BVg/DubRKI="; 22 }; 23 24 build-system = [ setuptools ]; 25 26 # Tests require local socket connection which is forbidden in the sandbox 27 doCheck = false; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 pytest-asyncio 32 ]; 33 pythonImportsCheck = [ "gmqtt" ]; 34 35 meta = { 36 description = "Python MQTT v5.0 async client"; 37 homepage = "https://github.com/wialon/gmqtt"; 38 license = lib.licenses.mit; 39 maintainers = with lib.maintainers; [ doronbehar ]; 40 }; 41}