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