1{ lib, buildPythonPackage, fetchFromGitHub, isPy27
2, future, pyserial, ipaddress
3}:
4
5buildPythonPackage rec {
6 pname = "pyspinel";
7 version = "unstable-2020-06-19"; # no versioned release since 2018
8 disabled = isPy27;
9
10 src = fetchFromGitHub {
11 owner = "openthread";
12 repo = pname;
13 rev = "e0bb3f8e6f49b593ab248a75de04a71626ae8101";
14 sha256 = "0nfmdkgbhmkl82dfxjpwiiarxngm6a3fvdrzpaqp60a4b17pipqg";
15 };
16
17 propagatedBuildInputs = [
18 future
19 ipaddress
20 pyserial
21 ];
22
23 doCheck = false;
24 pythonImportsCheck = [ "spinel" ];
25
26 meta = with lib; {
27 description = "Interface to the OpenThread Network Co-Processor (NCP)";
28 homepage = "https://github.com/openthread/pyspinel";
29 license = licenses.asl20;
30 maintainers = with maintainers; [ gebner ];
31 };
32}