1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pyserial, 6 pyserial-asyncio, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "pyblackbird"; 12 version = "0.6"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "koolsb"; 19 repo = "pyblackbird"; 20 tag = version; 21 hash = "sha256-+ehzrr+RrwFKOOuxBq3+mwnuMPxZFV4QTZG1IRgsbLc="; 22 }; 23 24 propagatedBuildInputs = [ 25 pyserial 26 pyserial-asyncio 27 ]; 28 29 # Test setup try to create a serial port 30 doCheck = false; 31 32 pythonImportsCheck = [ "pyblackbird" ]; 33 34 meta = with lib; { 35 description = "Python implementation for Monoprice Blackbird units"; 36 homepage = "https://github.com/koolsb/pyblackbird"; 37 changelog = "https://github.com/koolsb/pyblackbird/releases/tag/${version}"; 38 license = with licenses; [ mit ]; 39 maintainers = with maintainers; [ fab ]; 40 }; 41}