nixpkgs/pkgs/by-name/we/websploit/package.nix
nicoo 2641d97cbf pkgs/by-name: Convert hashes to SRI format
Reproduction script:
	# Bulk rewrite
	./maintainers/scripts/sha-to-sri.py pkgs/by-name
	# Revert some packages which will need manual intervention
	for n in amdvlk azure-cli cargo-profiler corefonts flatito fluxcd gist perf_data_converter protoc-gen-js solana-cli swt verible; do
		git checkout -- "pkgs/by-name/${n:0:2}/${n}"
	done
2024-09-15 11:24:31 +02:00

42 lines
870 B
Nix

{ lib
, fetchFromGitHub
, python3
}:
python3.pkgs.buildPythonApplication rec {
pname = "websploit";
version = "4.0.4";
pyproject = true;
src = fetchFromGitHub {
owner = "f4rih";
repo = "websploit";
rev = "refs/tags/${version}";
hash = "sha256-LpDfJmH2FbL37Fk86CAC/bxFqM035DBN6c6FPfGpaIw=";
};
nativeBuildInputs = with python3.pkgs; [
setuptools
];
propagatedBuildInputs = with python3.pkgs; [
requests
scapy
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [
"websploit"
];
meta = with lib; {
description = "High level MITM framework";
homepage = "https://github.com/f4rih/websploit";
changelog = "https://github.com/f4rih/websploit/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ emilytrau ];
mainProgram = "websploit";
};
}