Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 isPy27, 6}: 7 8buildPythonPackage rec { 9 pname = "python-wifi"; 10 version = "0.6.1"; 11 format = "setuptools"; 12 disabled = !isPy27; 13 14 src = fetchPypi { 15 inherit pname version; 16 extension = "tar.bz2"; 17 sha256 = "149c3dznb63d82143cz5hqdim0mqjysz6p3yk0zv271vq3xnmzvv"; 18 }; 19 20 meta = with lib; { 21 description = "Read & write wireless card capabilities using the Linux Wireless Extensions"; 22 homepage = "http://pythonwifi.tuxfamily.org/"; 23 # From the README: "pythonwifi is licensed under LGPLv2+, however, the 24 # examples (e.g. iwconfig.py and iwlist.py) are licensed under GPLv2+." 25 license = with licenses; [ 26 lgpl2Plus 27 gpl2Plus 28 ]; 29 }; 30}