tangled
alpha
login
or
join now
tjh.dev
/
nixpkgs
0
fork
atom
nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
0
fork
atom
overview
issues
pulls
pipelines
pythonPackages.wifi: init 0.3.5
Ryan Horiguchi
4 years ago
515b8980
faad370e
+47
2 changed files
expand all
collapse all
unified
split
pkgs
development
python-modules
wifi
default.nix
top-level
python-packages.nix
+45
pkgs/development/python-modules/wifi/default.nix
reviewed
···
1
1
+
{ lib
2
2
+
, buildPythonPackage
3
3
+
, fetchFromGitHub
4
4
+
, pbkdf2
5
5
+
, pytestCheckHook
6
6
+
, pythonOlder
7
7
+
, substituteAll
8
8
+
, wirelesstools
9
9
+
}:
10
10
+
11
11
+
buildPythonPackage rec {
12
12
+
pname = "wifi";
13
13
+
version = "0.3.5";
14
14
+
15
15
+
src = fetchFromGitHub {
16
16
+
owner = "rockymeza";
17
17
+
repo = pname;
18
18
+
rev = "v${version}";
19
19
+
sha256 = "sha256-scg/DvApvyQZtzDgkHFJzf9gCRfJgBvZ64CG/c2Cx8E=";
20
20
+
};
21
21
+
22
22
+
disabled = pythonOlder "2.6";
23
23
+
24
24
+
postPatch = ''
25
25
+
substituteInPlace wifi/scan.py \
26
26
+
--replace "/sbin/iwlist" "${wirelesstools}/bin/iwlist"
27
27
+
'';
28
28
+
29
29
+
checkInputs = [
30
30
+
pytestCheckHook
31
31
+
];
32
32
+
33
33
+
propagatedBuildInputs = [
34
34
+
pbkdf2
35
35
+
];
36
36
+
37
37
+
pythonImportsCheck = [ "wifi" ];
38
38
+
39
39
+
meta = with lib; {
40
40
+
description = "Provides a command line wrapper for iwlist and /etc/network/interfaces";
41
41
+
homepage = "https://github.com/rockymeza/wifi";
42
42
+
maintainers = with maintainers; [ rhoriguchi ];
43
43
+
license = licenses.bsd2;
44
44
+
};
45
45
+
}
+2
pkgs/top-level/python-packages.nix
reviewed
···
10781
10781
10782
10782
wiffi = callPackage ../development/python-modules/wiffi { };
10783
10783
10784
10784
+
wifi = callPackage ../development/python-modules/wifi { };
10785
10785
+
10784
10786
willow = callPackage ../development/python-modules/willow { };
10785
10787
10786
10788
winacl = callPackage ../development/python-modules/winacl { };