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