about summary refs log tree commit diff
path: root/nixpkgs/pkgs/tools/networking/evillimiter/default.nix
blob: a96151a3355f4849fea2c0be4582ce9e28ab9c44 (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
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
{ lib
, buildPythonApplication
, fetchFromGitHub
, colorama
, iproute2
, iptables
, netaddr
, netifaces
, scapy
, terminaltables
, tqdm
}:

buildPythonApplication rec {
  pname = "evillimiter";
  version = "1.5.0";

  src = fetchFromGitHub {
    owner = "bitbrute";
    repo = pname;
    rev = "v${version}";
    sha256 = "1l0acd4a36wzz1gyc6mcw3zpagyi2mc425c6d4c6anq3jxwm3847";
  };

  propagatedBuildInputs = [
    colorama
    iproute2
    iptables
    netaddr
    netifaces
    scapy
    terminaltables
    tqdm
  ];

  # no tests present
  doCheck = false;

  pythonImportsCheck = [ "evillimiter.evillimiter" ];

  meta = with lib; {
    description = "Tool that monitors, analyzes and limits the bandwidth";
    mainProgram = "evillimiter";
    longDescription = ''
      A tool to monitor, analyze and limit the bandwidth (upload/download) of
      devices on your local network without physical or administrative access.
      evillimiter employs ARP spoofing and traffic shaping to throttle the
      bandwidth of hosts on the network.
    '';
    homepage = "https://github.com/bitbrute/evillimiter";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}