2021-04-25 03:57:28 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, 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
|
2022-08-12 12:06:08 +00:00
|
|
|
, pytest-sugar
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-flirt
|
2021-04-25 03:57:28 +00:00
|
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "viv-utils";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "0.7.9";
|
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}";
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-xM3jtA6fNk36+enL/EcQH59CNajYnGlEDu06QXIFz6A=";
|
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 = {
|
|
|
|
flirt = [
|
|
|
|
python-flirt
|
|
|
|
];
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
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
|
|
|
};
|
|
|
|
}
|