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";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.7.5";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "williballenthin";
|
|
|
|
repo = "viv-utils";
|
|
|
|
rev = "v${version}";
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-JDu+1n1wP2Vsp2V/bKdE+RFp6bE8RNmimi4wdsatwME=";
|
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
|
|
|
|
];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
checkInputs = [
|
|
|
|
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";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = teams.determinatesystems.members;
|
|
|
|
};
|
|
|
|
}
|