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