depot/third_party/nixpkgs/pkgs/development/python-modules/pytap2/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

37 lines
794 B
Nix

{
lib,
buildPythonPackage,
nettools,
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 = [ nettools ];
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;
};
}