Skip to content

Commit

Permalink
evillimiter: modernize (#352969)
Browse files Browse the repository at this point in the history
  • Loading branch information
natsukium authored Nov 2, 2024
2 parents 72d9ba8 + 5b787fd commit 0a75a36
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,28 +1,26 @@
{ lib
, buildPythonApplication
, fetchFromGitHub
, colorama
, iproute2
, iptables
, netaddr
, netifaces
, scapy
, terminaltables
, tqdm
{
lib,
fetchFromGitHub,
iproute2,
iptables,
python3Packages,
}:

buildPythonApplication rec {
python3Packages.buildPythonApplication rec {
pname = "evillimiter";
version = "1.5.0";
pyproject = true;

src = fetchFromGitHub {
owner = "bitbrute";
repo = pname;
rev = "v${version}";
sha256 = "1l0acd4a36wzz1gyc6mcw3zpagyi2mc425c6d4c6anq3jxwm3847";
repo = "evillimiter";
rev = "refs/tags/v${version}";
hash = "sha256-h6BReZcDW2UYaYYVQVgV0T91/+CsGuZf+J+boUhjCtA=";
};

propagatedBuildInputs = [
build-system = with python3Packages; [ setuptools-scm ];

dependencies = with python3Packages; [
colorama
iproute2
iptables
Expand All @@ -33,22 +31,20 @@ buildPythonApplication rec {
tqdm
];

# no tests present
# Project has no tests
doCheck = false;

pythonImportsCheck = [ "evillimiter.evillimiter" ];

meta = with lib; {
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 ];
license = licenses.mit;
maintainers = with maintainers; [ fab ];
mainProgram = "evillimiter";
};
}
2 changes: 0 additions & 2 deletions pkgs/top-level/all-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -7328,8 +7328,6 @@ with pkgs;

eventstat = callPackage ../os-specific/linux/eventstat { };

evillimiter = python3Packages.callPackage ../tools/networking/evillimiter { };

evtest = callPackage ../applications/misc/evtest { };

evtest-qt = libsForQt5.callPackage ../applications/misc/evtest-qt { };
Expand Down

0 comments on commit 0a75a36

Please sign in to comment.