zimbatm 39c01d22bf net-tools: rename from nettools
By being in sync with the pname, it makes it easier to walk back from
the pname that shows in the /nix/store back to the attribute.

This change should not cause any rebuild.
2025-06-21 19:57:36 +02:00

38 lines
796 B
Nix

{
lib,
buildPythonPackage,
net-tools,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "pytap2";
version = "2.3.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "johnthagen";
repo = "pytap2";
rev = "v${version}";
hash = "sha256-GN8yFnS7HVgIP73/nVtYnwwhCBI9doGHLGSOaFiWIdw=";
};
propagatedBuildInputs = [ net-tools ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "pytap2" ];
meta = with lib; {
description = "Object-oriented wrapper around the Linux Tun/Tap device";
homepage = "https://github.com/johnthagen/pytap2";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
platforms = platforms.linux;
};
}