at 23.05-pre 825 B view raw
1{ lib 2, async-timeout 3, bitstring 4, buildPythonPackage 5, fetchFromGitHub 6, poetry-core 7, pyserial-asyncio 8}: 9 10buildPythonPackage rec { 11 pname = "pysml"; 12 version = "0.0.8"; 13 format = "pyproject"; 14 15 src = fetchFromGitHub { 16 owner = "mtdcr"; 17 repo = pname; 18 rev = version; 19 sha256 = "sha256-Qw2irvj94cBquYeVUhqOq8lw85oP5TqtA2XTT2z5/as="; 20 }; 21 22 nativeBuildInputs = [ 23 poetry-core 24 ]; 25 26 propagatedBuildInputs = [ 27 async-timeout 28 bitstring 29 pyserial-asyncio 30 ]; 31 32 # Project has no tests 33 doCheck = false; 34 35 pythonImportsCheck = [ "sml" ]; 36 37 meta = with lib; { 38 description = "Python library for EDL21 smart meters using Smart Message Language (SML)"; 39 homepage = "https://github.com/mtdcr/pysml"; 40 license = with licenses; [ mit ]; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}