Merge pull request #321769 from fabaff/mitm6

mitm6: refactor
This commit is contained in:
Fabian Affolter 2024-06-23 09:33:29 +02:00 committed by GitHub
commit 66bf601c32
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,37 +1,38 @@
{ lib
, fetchPypi
, python3
{
lib,
fetchPypi,
python3,
}:
python3.pkgs.buildPythonApplication rec {
pname = "mitm6";
version = "0.3.0";
format = "setuptools";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-g+eFcJdgP7CQ6ntN17guJa4LdkGIb91mr/NKRPIukP8=";
};
propagatedBuildInputs = with python3.pkgs; [
scapy
build-system = with python3.pkgs; [ setuptools ];
dependencies = with python3.pkgs; [
future
twisted
netifaces
scapy
twisted
];
# No tests exist for mitm6.
doCheck = false;
pythonImportsCheck = [
"mitm6"
];
pythonImportsCheck = [ "mitm6" ];
meta = {
description = "DHCPv6 network spoofing application";
mainProgram = "mitm6";
homepage = "https://github.com/dirkjanm/mitm6";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ ];
maintainers = with lib.maintainers; [ fab ];
mainProgram = "mitm6";
};
}