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