depot/third_party/nixpkgs/pkgs/development/python-modules/python-wifi/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

30 lines
722 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
isPy27,
}:
buildPythonPackage rec {
pname = "python-wifi";
version = "0.6.1";
format = "setuptools";
disabled = !isPy27;
src = fetchPypi {
inherit pname version;
extension = "tar.bz2";
sha256 = "149c3dznb63d82143cz5hqdim0mqjysz6p3yk0zv271vq3xnmzvv";
};
meta = with lib; {
description = "Read & write wireless card capabilities using the Linux Wireless Extensions";
homepage = "http://pythonwifi.tuxfamily.org/";
# From the README: "pythonwifi is licensed under LGPLv2+, however, the
# examples (e.g. iwconfig.py and iwlist.py) are licensed under GPLv2+."
license = with licenses; [
lgpl2Plus
gpl2Plus
];
};
}