Files
nixpkgs/pkgs/development/python-modules/iwlib/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

37 lines
842 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
wirelesstools,
cffi,
pytest,
}:
buildPythonPackage rec {
pname = "iwlib";
version = "1.7.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "a805f6597a70ee3001aba8f039fb7b2dcb75dc15c4e7852f5594fd6379196da1";
};
propagatedBuildInputs = [
wirelesstools
cffi
];
nativeBuildInputs = [ pytest ];
pythonImportsCheck = [ "iwlib" ];
checkInputs = [ pytest ];
checkPhase = "python iwlib/_iwlib_build.py; pytest -v";
meta = {
homepage = "https://github.com/nhoad/python-iwlib";
description = "Python interface for the Wireless Tools utility collection";
changelog = "https://github.com/nhoad/python-iwlib#change-history";
maintainers = with lib.maintainers; [ jcspeegs ];
license = lib.licenses.gpl2Only;
};
}