1{ 2 lib, 3 aiohttp, 4 buildPythonPackage, 5 fetchFromGitHub, 6 pytest-asyncio, 7 pytestCheckHook, 8 pythonOlder, 9 setuptools, 10 syrupy, 11}: 12 13buildPythonPackage rec { 14 pname = "pypalazzetti"; 15 version = "0.1.19"; 16 pyproject = true; 17 18 disabled = pythonOlder "3.10"; 19 20 src = fetchFromGitHub { 21 owner = "dotvav"; 22 repo = "py-palazzetti-api"; 23 tag = "v${version}"; 24 hash = "sha256-Bmx4CU6bx5FVR7xdDxrtVSXunthi2s2Esj1FtSjh61U="; 25 }; 26 27 build-system = [ setuptools ]; 28 29 dependencies = [ aiohttp ]; 30 31 nativeCheckInputs = [ 32 pytest-asyncio 33 pytestCheckHook 34 syrupy 35 ]; 36 37 pythonImportsCheck = [ "pypalazzetti" ]; 38 39 meta = { 40 description = "Library to access and control a Palazzetti stove through a Connection Box"; 41 homepage = "https://github.com/dotvav/py-palazzetti-api"; 42 changelog = "https://github.com/dotvav/py-palazzetti-api/blob/${src.rev}/CHANGELOG.md"; 43 license = lib.licenses.mit; 44 maintainers = with lib.maintainers; [ fab ]; 45 }; 46}