1{ stdenv
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 stdenv.lib; {
19 inherit version;
20 description = "Read & write wireless card capabilities using the Linux Wireless Extensions";
21 homepage = "http://pythonwifi.tuxfamily.org/";
22 # From the README: "pythonwifi is licensed under LGPLv2+, however, the
23 # examples (e.g. iwconfig.py and iwlist.py) are licensed under GPLv2+."
24 license = with licenses; [ lgpl2Plus gpl2Plus ];
25 };
26
27}