blob: 1e080f0bbad30b23039bbf025db17c03e419b505 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
{
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;
};
}
|