at 23.11-beta 892 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pbkdf2 5, pytestCheckHook 6, pythonOlder 7, substituteAll 8, wirelesstools 9}: 10 11buildPythonPackage rec { 12 pname = "wifi"; 13 version = "0.3.5"; 14 15 src = fetchFromGitHub { 16 owner = "rockymeza"; 17 repo = pname; 18 rev = "v${version}"; 19 hash = "sha256-scg/DvApvyQZtzDgkHFJzf9gCRfJgBvZ64CG/c2Cx8E="; 20 }; 21 22 disabled = pythonOlder "2.6"; 23 24 postPatch = '' 25 substituteInPlace wifi/scan.py \ 26 --replace "/sbin/iwlist" "${wirelesstools}/bin/iwlist" 27 ''; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 ]; 32 33 propagatedBuildInputs = [ 34 pbkdf2 35 ]; 36 37 pythonImportsCheck = [ "wifi" ]; 38 39 meta = with lib; { 40 description = "Provides a command line wrapper for iwlist and /etc/network/interfaces"; 41 homepage = "https://github.com/rockymeza/wifi"; 42 maintainers = with maintainers; [ rhoriguchi ]; 43 license = licenses.bsd2; 44 }; 45}