nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5}:
6
7buildPythonPackage rec {
8 pname = "pytun";
9 version = "2.4.1";
10 format = "setuptools";
11
12 src = fetchFromGitHub {
13 rev = "v${version}";
14 owner = "montag451";
15 repo = "pytun";
16 sha256 = "sha256-DZ7CoLi6LPhuc55HF9dtek+/N4A29ecnZn7bk7jweuI=";
17 };
18
19 # Test directory contains examples, not tests.
20 doCheck = false;
21
22 meta = {
23 homepage = "https://github.com/montag451/pytun";
24 description = "Linux TUN/TAP wrapper for Python";
25 license = lib.licenses.mit;
26 maintainers = with lib.maintainers; [ montag451 ];
27 platforms = lib.platforms.linux;
28 };
29}