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