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