summary refs log tree commit diff
path: root/pkgs/development/python-modules/pyspinel/default.nix
blob: 69c06b8876d26ad4d134c5736c186d5773f6be65 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
{ lib
, buildPythonPackage
, fetchFromGitHub
, pyserial
, pythonOlder
}:

buildPythonPackage rec {
  pname = "pyspinel";
  version = "unstable-2021-08-19";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "openthread";
    repo = pname;
    rev = "50d104e29eacd92d229f0b7179ec1067f5851c17";
    sha256 = "0s2r00zb909cq3dd28i91qbl0nz8cga3g98z84gq5jqkjpiy8269";
  };

  propagatedBuildInputs = [
    pyserial
  ];

  # Tests are out-dated
  doCheck = false;

  pythonImportsCheck = [
    "spinel"
  ];

  meta = with lib; {
    description = "Interface to the OpenThread Network Co-Processor (NCP)";
    homepage = "https://github.com/openthread/pyspinel";
    license = licenses.asl20;
    maintainers = with maintainers; [ gebner ];
  };
}