1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pyserial 5, pythonOlder 6}: 7 8buildPythonPackage rec { 9 pname = "pyspinel"; 10 version = "unstable-2021-08-19"; 11 12 disabled = pythonOlder "3.7"; 13 14 src = fetchFromGitHub { 15 owner = "openthread"; 16 repo = pname; 17 rev = "50d104e29eacd92d229f0b7179ec1067f5851c17"; 18 sha256 = "0s2r00zb909cq3dd28i91qbl0nz8cga3g98z84gq5jqkjpiy8269"; 19 }; 20 21 propagatedBuildInputs = [ 22 pyserial 23 ]; 24 25 # Tests are out-dated 26 doCheck = false; 27 28 pythonImportsCheck = [ 29 "spinel" 30 ]; 31 32 meta = with lib; { 33 description = "Interface to the OpenThread Network Co-Processor (NCP)"; 34 homepage = "https://github.com/openthread/pyspinel"; 35 license = licenses.asl20; 36 maintainers = with maintainers; [ gebner ]; 37 }; 38}