mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-05 04:10:19 +00:00
37 lines
827 B
Nix
37 lines
827 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
wirelesstools,
|
|
cffi,
|
|
pytest,
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "iwlib";
|
|
version = "1.7.0";
|
|
format = "setuptools";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-qAX2WXpw7jABq6jwOft7Lct13BXE54UvVZT9Y3kZbaE=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|