nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 fetchFromGitHub,
5 python3,
6}:
7
8python3.pkgs.buildPythonApplication rec {
9 pname = "boofuzz";
10 version = "0.4.2";
11 pyproject = true;
12
13 src = fetchFromGitHub {
14 owner = "jtpereyda";
15 repo = "boofuzz";
16 tag = "v${version}";
17 hash = "sha256-ffZVFmfDAJ+Qn3hbeHY/CvYgpDLxB+jaYOiYyZqZ7mo=";
18 };
19
20 build-system = with python3.pkgs; [ poetry-core ];
21
22 dependencies = with python3.pkgs; [
23 attrs
24 click
25 colorama
26 flask
27 funcy
28 psutil
29 pyserial
30 pydot
31 tornado
32 ];
33
34 nativeCheckInputs = with python3.pkgs; [
35 mock
36 netifaces
37 pytest-bdd
38 pytestCheckHook
39 ];
40
41 disabledTests = [
42 "TestNetworkMonitor"
43 "TestNoResponseFailure"
44 "TestProcessMonitor"
45 "TestSocketConnection"
46 ]
47 ++ lib.optionals stdenv.hostPlatform.isDarwin [ "test_time_repeater" ];
48
49 pythonImportsCheck = [ "boofuzz" ];
50
51 meta = {
52 description = "Network protocol fuzzing tool";
53 homepage = "https://github.com/jtpereyda/boofuzz";
54 changelog = "https://github.com/jtpereyda/boofuzz/blob/${src.tag}/CHANGELOG.rst";
55 license = lib.licenses.gpl2Plus;
56 maintainers = with lib.maintainers; [ fab ];
57 mainProgram = "boo";
58 };
59}