1{
2 lib,
3 buildPythonPackage,
4 net-tools,
5 fetchFromGitHub,
6 pytestCheckHook,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "pytap2";
12 version = "2.3.0";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "johnthagen";
19 repo = "pytap2";
20 rev = "v${version}";
21 hash = "sha256-GN8yFnS7HVgIP73/nVtYnwwhCBI9doGHLGSOaFiWIdw=";
22 };
23
24 propagatedBuildInputs = [ net-tools ];
25
26 nativeCheckInputs = [ pytestCheckHook ];
27
28 pythonImportsCheck = [ "pytap2" ];
29
30 meta = with lib; {
31 description = "Object-oriented wrapper around the Linux Tun/Tap device";
32 homepage = "https://github.com/johnthagen/pytap2";
33 license = with licenses; [ mit ];
34 maintainers = with maintainers; [ fab ];
35 platforms = platforms.linux;
36 };
37}