Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 83 lines
Nix
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384{ lib, buildPythonPackage, dissect-cstruct, dissect-util, fetchFromGitHub, flow-record, hatch-vcs, hatchling, httpx, lark, pycryptodome, pyshark, pytest-httpserver, pytestCheckHook, pythonOlder, rich,}:
buildPythonPackage rec { pname = "dissect-cobaltstrike"; version = "1.2.1"; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub { owner = "fox-it"; repo = "dissect.cobaltstrike"; tag = "v${version}"; hash = "sha256-0Wi0H9jL7suF/d92Sg2LuE6M2EzbIWsEC7Jjd1eJGTw="; };
build-system = [ hatch-vcs hatchling ];
dependencies = [ dissect-cstruct dissect-util lark ];
optional-dependencies = { c2 = [ flow-record httpx pycryptodome ]; pcap = [ flow-record httpx pycryptodome pyshark ]; full = [ flow-record httpx pycryptodome pyshark rich ]; };
__darwinAllowLocalNetworking = true;
nativeCheckInputs = [ pytest-httpserver pytestCheckHook ] ++ lib.flatten (builtins.attrValues optional-dependencies);
pythonImportsCheck = [ "dissect.cobaltstrike" ];
meta = with lib; { description = "Dissect module implementing a parser for Cobalt Strike related data"; homepage = "https://github.com/fox-it/dissect.cobaltstrike"; changelog = "https://github.com/fox-it/dissect.cobaltstrike/releases/tag/${src.tag}"; license = licenses.agpl3Only; maintainers = with maintainers; [ fab ]; };}