at 24.11-pre 862 B view raw
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 doCheck = true; 27 checkInputs = [ pytest ]; 28 checkPhase = "python iwlib/_iwlib_build.py; pytest -v"; 29 30 meta = with lib; { 31 homepage = "https://github.com/nhoad/python-iwlib"; 32 description = "Python interface for the Wireless Tools utility collection"; 33 changelog = "https://github.com/nhoad/python-iwlib#change-history"; 34 maintainers = with maintainers; [ jcspeegs ]; 35 license = licenses.gpl2Only; 36 }; 37}