@@ -1,21 +1,32 @@
1−{ buildPythonPackage, fetchPypi, lib, future, pyserial, ipaddress }:
1+{ lib, buildPythonPackage, fetchFromGitHub, isPy27
2+, future, pyserial, ipaddress
3+}:
24
35buildPythonPackage rec {
46 pname = "pyspinel";
5− version = "1.0.1";
7+ version = "unstable-2020-06-19"; # no versioned release since 2018
8+ disabled = isPy27;
69
7− src = fetchPypi {
8− inherit pname version;
9− sha256 = "5cbfd0f6e9ef3b5cd3a4e72a9a0cee1fe50d518b43746be07a1fd17e883328c2";
10+ src = fetchFromGitHub {
11+ owner = "openthread";
12+ repo = pname;
13+ rev = "e0bb3f8e6f49b593ab248a75de04a71626ae8101";
14+ sha256 = "0nfmdkgbhmkl82dfxjpwiiarxngm6a3fvdrzpaqp60a4b17pipqg";
1015 };
1116
12− propagatedBuildInputs = [ pyserial ipaddress future ];
17+ propagatedBuildInputs = [
18+ future
19+ ipaddress
20+ pyserial
21+ ];
1322
1423 doCheck = false;
24+ pythonImportsCheck = [ "spinel" ];
1525
16− meta = {
26+ meta = with lib; {
1727 description = "Interface to the OpenThread Network Co-Processor (NCP)";
1828 homepage = "https://github.com/openthread/pyspinel";
19− maintainers = with lib.maintainers; [ gebner ];
29+ license = licenses.asl20;
30+ maintainers = with maintainers; [ gebner ];
2031 };
2132}