2020-06-08 17:47:45 +01:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, isPy27
|
|
|
|
, future, pyserial, ipaddress
|
|
|
|
}:
|
2019-05-19 11:11:18 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyspinel";
|
2020-06-08 17:47:45 +01:00
|
|
|
version = "unstable-2020-06-19"; # no versioned release since 2018
|
|
|
|
disabled = isPy27;
|
2019-05-19 11:11:18 +01:00
|
|
|
|
2020-06-08 17:47:45 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "openthread";
|
|
|
|
repo = pname;
|
|
|
|
rev = "e0bb3f8e6f49b593ab248a75de04a71626ae8101";
|
|
|
|
sha256 = "0nfmdkgbhmkl82dfxjpwiiarxngm6a3fvdrzpaqp60a4b17pipqg";
|
2019-05-19 11:11:18 +01:00
|
|
|
};
|
|
|
|
|
2020-06-08 17:47:45 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
future
|
|
|
|
ipaddress
|
|
|
|
pyserial
|
|
|
|
];
|
2019-05-19 11:11:18 +01:00
|
|
|
|
|
|
|
doCheck = false;
|
2020-06-08 17:47:45 +01:00
|
|
|
pythonImportsCheck = [ "spinel" ];
|
2019-05-19 11:11:18 +01:00
|
|
|
|
2020-06-08 17:47:45 +01:00
|
|
|
meta = with lib; {
|
2019-05-19 11:11:18 +01:00
|
|
|
description = "Interface to the OpenThread Network Co-Processor (NCP)";
|
|
|
|
homepage = "https://github.com/openthread/pyspinel";
|
2020-06-08 17:47:45 +01:00
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ gebner ];
|
2019-05-19 11:11:18 +01:00
|
|
|
};
|
|
|
|
}
|