pythonPackages.python-wifi: refactor move to python-modules

This commit is contained in:
Chris Ostrouchov 2018-10-26 11:43:34 -04:00 committed by Frederik Rietdijk
parent ef68ff02b8
commit 952f5b808b
2 changed files with 28 additions and 19 deletions

View File

@ -0,0 +1,27 @@
{ stdenv
, buildPythonPackage
, fetchPypi
, isPy27
}:
buildPythonPackage rec {
pname = "python-wifi";
version = "0.6.1";
disabled = !isPy27;
src = fetchPypi {
inherit pname version;
extension = "tar.bz2";
sha256 = "149c3dznb63d82143cz5hqdim0mqjysz6p3yk0zv271vq3xnmzvv";
};
meta = with stdenv.lib; {
inherit version;
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 ];
};
}

View File

@ -3497,25 +3497,7 @@ in {
python-ptrace = callPackage ../development/python-modules/python-ptrace { };
python-wifi = buildPythonPackage rec {
name = "python-wifi-${version}";
version = "0.6.1";
disabled = !isPy27;
src = pkgs.fetchurl {
url = "mirror://pypi/p/python-wifi/${name}.tar.bz2";
sha256 = "149c3dznb63d82143cz5hqdim0mqjysz6p3yk0zv271vq3xnmzvv";
};
meta = {
inherit version;
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 ];
};
};
python-wifi = callPackage ../development/python-modules/python-wifi { };
python-etcd = buildPythonPackage rec {
name = "python-etcd-${version}";