1{ lib, buildPythonPackage, fetchPypi, wirelesstools, cffi, pytest }:
2buildPythonPackage rec {
3 pname = "iwlib";
4 version = "1.7.0";
5
6 src = fetchPypi {
7 inherit pname version;
8 sha256 = "a805f6597a70ee3001aba8f039fb7b2dcb75dc15c4e7852f5594fd6379196da1";
9 };
10
11 propagatedBuildInputs = [ wirelesstools cffi ];
12 nativeBuildInputs = [ pytest ];
13 pythonImportsCheck = [ "iwlib" ];
14
15 doCheck = true;
16 checkInputs = [ pytest ];
17 checkPhase = "python iwlib/_iwlib_build.py; pytest -v";
18
19 meta = with lib; {
20 homepage = "https://github.com/nhoad/python-iwlib";
21 description = "Python interface for the Wireless Tools utility collection";
22 changelog = "https://github.com/nhoad/python-iwlib#change-history";
23 maintainers = with maintainers; [ jcspeegs ];
24 license = licenses.gpl2Only;
25 };
26}