about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pytun/default.nix
blob: 2b49b169c6d1cf08b95302ea79e7f8853a2dcdb7 (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
{ lib, stdenv
, buildPythonPackage
, fetchFromGitHub
}:

buildPythonPackage rec {
  pname = "pytun";
  version = "2.3.0";

  src = fetchFromGitHub {
    rev = "v${version}";
    owner = "montag451";
    repo = "pytun";
    sha256 = "1cqq8aci38058fjh4a0xf21wac177fw576p2yjl2b8jd9rnsqbl5";
  };

  # Test directory contains examples, not tests.
  doCheck = false;

  meta = with lib; {
    homepage = "https://github.com/montag451/pytun";
    description = "Linux TUN/TAP wrapper for Python";
    license = licenses.mit;
    maintainers = with maintainers; [ montag451 ];
    platforms = platforms.linux;
  };
}