2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
funcy,
|
|
|
|
intervaltree,
|
|
|
|
pefile,
|
|
|
|
typing-extensions,
|
|
|
|
vivisect,
|
|
|
|
pytest-sugar,
|
|
|
|
pytestCheckHook,
|
|
|
|
python-flirt,
|
2021-04-25 03:57:28 +00:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "viv-utils";
|
2024-06-05 15:53:02 +00:00
|
|
|
version = "0.7.10";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "williballenthin";
|
|
|
|
repo = "viv-utils";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2024-06-05 15:53:02 +00:00
|
|
|
hash = "sha256-pQAe4QuOcx5MG+slJkf4UU38TGt4pU0uVZr+vtwsWgM=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "==" ">="
|
2021-04-25 03:57:28 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
funcy
|
2022-08-12 12:06:08 +00:00
|
|
|
intervaltree
|
2021-04-25 03:57:28 +00:00
|
|
|
pefile
|
2022-08-12 12:06:08 +00:00
|
|
|
typing-extensions
|
2021-04-25 03:57:28 +00:00
|
|
|
vivisect
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-08-12 12:06:08 +00:00
|
|
|
pytest-sugar
|
|
|
|
pytestCheckHook
|
2021-04-25 03:57:28 +00:00
|
|
|
];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
passthru = {
|
|
|
|
optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
flirt = [ python-flirt ];
|
2022-08-12 12:06:08 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-04-25 03:57:28 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Utilities for working with vivisect";
|
|
|
|
homepage = "https://github.com/williballenthin/viv-utils";
|
2023-03-04 12:14:45 +00:00
|
|
|
changelog = "https://github.com/williballenthin/viv-utils/releases/tag/v${version}";
|
2021-04-25 03:57:28 +00:00
|
|
|
license = licenses.asl20;
|
2023-03-24 00:07:29 +00:00
|
|
|
maintainers = [ ];
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
}
|