2021-04-18 23:05:16 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, funcy
|
2022-07-25 08:35:53 +00:00
|
|
|
, intervaltree
|
2021-04-18 23:05:16 +00:00
|
|
|
, pefile
|
2022-07-25 08:35:53 +00:00
|
|
|
, typing-extensions
|
2021-04-18 23:05:16 +00:00
|
|
|
, vivisect
|
2022-07-25 08:35:53 +00:00
|
|
|
, pytest-sugar
|
|
|
|
, pytestCheckHook
|
2022-07-25 11:25:16 +00:00
|
|
|
, python-flirt
|
2021-04-18 23:05:16 +00:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "viv-utils";
|
2022-12-30 19:13:56 +00:00
|
|
|
version = "0.7.7";
|
2021-04-18 23:05:16 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "williballenthin";
|
|
|
|
repo = "viv-utils";
|
2022-12-30 19:13:56 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-03-03 00:48:06 +00:00
|
|
|
hash = "sha256-ih6CtnsGfHRLDjoaF7BkoUENu+0pU3NB6TG0A70f3nE=";
|
2021-04-18 23:05:16 +00:00
|
|
|
};
|
|
|
|
|
2022-07-25 08:35:53 +00:00
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace setup.py \
|
|
|
|
--replace "==" ">="
|
2021-04-18 23:05:16 +00:00
|
|
|
'';
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
funcy
|
2022-07-25 08:35:53 +00:00
|
|
|
intervaltree
|
2021-04-18 23:05:16 +00:00
|
|
|
pefile
|
2022-07-25 08:35:53 +00:00
|
|
|
typing-extensions
|
2021-04-18 23:05:16 +00:00
|
|
|
vivisect
|
|
|
|
];
|
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2022-07-25 08:35:53 +00:00
|
|
|
pytest-sugar
|
|
|
|
pytestCheckHook
|
2021-04-18 23:05:16 +00:00
|
|
|
];
|
|
|
|
|
2022-07-25 11:25:16 +00:00
|
|
|
passthru = {
|
|
|
|
optional-dependencies = {
|
|
|
|
flirt = [
|
|
|
|
python-flirt
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2021-04-18 23:05:16 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Utilities for working with vivisect";
|
|
|
|
homepage = "https://github.com/williballenthin/viv-utils";
|
2023-03-03 08:29:55 +00:00
|
|
|
changelog = "https://github.com/williballenthin/viv-utils/releases/tag/v${version}";
|
2021-04-18 23:05:16 +00:00
|
|
|
license = licenses.asl20;
|
2023-03-22 14:17:37 +00:00
|
|
|
maintainers = [ ];
|
2021-04-18 23:05:16 +00:00
|
|
|
};
|
|
|
|
}
|