at master 920 B view raw
1{ 2 lib, 3 aiohttp, 4 bitstring, 5 buildPythonPackage, 6 fetchFromGitHub, 7 poetry-core, 8 pyserial-asyncio-fast, 9 pythonOlder, 10}: 11 12buildPythonPackage rec { 13 pname = "pysml"; 14 version = "0.1.5"; 15 pyproject = true; 16 17 disabled = pythonOlder "3.11"; 18 19 src = fetchFromGitHub { 20 owner = "mtdcr"; 21 repo = "pysml"; 22 tag = version; 23 hash = "sha256-cJOf+O/Q+CfX26XQixHEZ/+N7+YsoPadxk/0Zeob2f8="; 24 }; 25 26 build-system = [ poetry-core ]; 27 28 dependencies = [ 29 aiohttp 30 bitstring 31 pyserial-asyncio-fast 32 ]; 33 34 # Module has no tests 35 doCheck = false; 36 37 pythonImportsCheck = [ "sml" ]; 38 39 meta = with lib; { 40 description = "Python library for EDL21 smart meters using Smart Message Language (SML)"; 41 homepage = "https://github.com/mtdcr/pysml"; 42 changelog = "https://github.com/mtdcr/pysml/releases/tag/${src.tag}"; 43 license = licenses.mit; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}