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