default.nix (1100B)
1 { 2 lib, 3 fetchFromGitHub, 4 python3Packages, 5 }: 6 7 python3Packages.buildPythonApplication rec { 8 pname = "amqtt"; 9 version = "0.11.1"; 10 pyproject = true; 11 12 src = fetchFromGitHub { 13 owner = "Yakifo"; 14 repo = "amqtt"; 15 tag = "v${version}"; 16 hash = "sha256-l/YbfrjJsBA5a/IHH2p/B3irZF/z2xzNYxXOMOieV04="; 17 }; 18 19 postPatch = '' 20 substituteInPlace pyproject.toml \ 21 --replace-fail ', "uv-dynamic-versioning"' "" 22 ''; 23 24 build-system = with python3Packages; [ hatchling hatch-vcs ]; 25 26 dependencies = with python3Packages; [ 27 passlib 28 psutil 29 pyyaml 30 transitions 31 typer 32 websockets 33 ]; 34 35 pythonRelaxDeps = true; 36 37 doCheck = false; 38 39 nativeCheckInputs = with python3Packages; [ 40 hypothesis 41 pytest-asyncio 42 pytest-cov-stub 43 pytest-logdog 44 pytestCheckHook 45 ]; 46 47 pythonImportsCheck = [ "amqtt" ]; 48 49 __darwinAllowLocalNetworking = true; 50 51 meta = { 52 description = "MQTT client/broker using Python asyncio"; 53 homepage = "https://github.com/Yakifo/amqtt"; 54 license = lib.licenses.mit; 55 maintainers = [ lib.maintainers.sikmir ]; 56 }; 57 }