1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pyserial 5, pyserial-asyncio 6}: 7 8buildPythonPackage rec { 9 pname = "pyblackbird"; 10 version = "0.5"; 11 12 src = fetchFromGitHub { 13 owner = "koolsb"; 14 repo = pname; 15 rev = version; 16 sha256 = "0m1yd1cb3z8011x7nicxpf091bdcwghcphn0l21c65f71rabzg6s"; 17 }; 18 19 propagatedBuildInputs = [ 20 pyserial 21 pyserial-asyncio 22 ]; 23 24 # Test setup try to create a serial port 25 doCheck = false; 26 pythonImportsCheck = [ "pyblackbird" ]; 27 28 meta = with lib; { 29 description = "Python implementation for Monoprice Blackbird units"; 30 homepage = "https://github.com/koolsb/pyblackbird"; 31 license = with licenses; [ mit ]; 32 maintainers = with maintainers; [ fab ]; 33 }; 34}