Merge pull request #168917 from rhoriguchi/pythonPackages.wifi
pythonPackages.wifi: init 0.3.5
This commit is contained in:
commit
3393017b69
2 changed files with 47 additions and 0 deletions
45
pkgs/development/python-modules/wifi/default.nix
Normal file
45
pkgs/development/python-modules/wifi/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pbkdf2
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, substituteAll
|
||||||
|
, wirelesstools
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "wifi";
|
||||||
|
version = "0.3.5";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "rockymeza";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-scg/DvApvyQZtzDgkHFJzf9gCRfJgBvZ64CG/c2Cx8E=";
|
||||||
|
};
|
||||||
|
|
||||||
|
disabled = pythonOlder "2.6";
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace wifi/scan.py \
|
||||||
|
--replace "/sbin/iwlist" "${wirelesstools}/bin/iwlist"
|
||||||
|
'';
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
propagatedBuildInputs = [
|
||||||
|
pbkdf2
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "wifi" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Provides a command line wrapper for iwlist and /etc/network/interfaces";
|
||||||
|
homepage = "https://github.com/rockymeza/wifi";
|
||||||
|
maintainers = with maintainers; [ rhoriguchi ];
|
||||||
|
license = licenses.bsd2;
|
||||||
|
};
|
||||||
|
}
|
|
@ -10830,6 +10830,8 @@ in {
|
||||||
|
|
||||||
wiffi = callPackage ../development/python-modules/wiffi { };
|
wiffi = callPackage ../development/python-modules/wiffi { };
|
||||||
|
|
||||||
|
wifi = callPackage ../development/python-modules/wifi { };
|
||||||
|
|
||||||
willow = callPackage ../development/python-modules/willow { };
|
willow = callPackage ../development/python-modules/willow { };
|
||||||
|
|
||||||
winacl = callPackage ../development/python-modules/winacl { };
|
winacl = callPackage ../development/python-modules/winacl { };
|
||||||
|
|
Loading…
Reference in a new issue