fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
57 lines
1.1 KiB
Nix
57 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
funcy,
|
|
intervaltree,
|
|
pefile,
|
|
typing-extensions,
|
|
vivisect,
|
|
pytest-sugar,
|
|
pytestCheckHook,
|
|
python-flirt,
|
|
}:
|
|
buildPythonPackage rec {
|
|
pname = "viv-utils";
|
|
version = "0.7.10";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "williballenthin";
|
|
repo = "viv-utils";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-pQAe4QuOcx5MG+slJkf4UU38TGt4pU0uVZr+vtwsWgM=";
|
|
};
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.py \
|
|
--replace "==" ">="
|
|
'';
|
|
|
|
propagatedBuildInputs = [
|
|
funcy
|
|
intervaltree
|
|
pefile
|
|
typing-extensions
|
|
vivisect
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-sugar
|
|
pytestCheckHook
|
|
];
|
|
|
|
passthru = {
|
|
optional-dependencies = {
|
|
flirt = [ python-flirt ];
|
|
};
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Utilities for working with vivisect";
|
|
homepage = "https://github.com/williballenthin/viv-utils";
|
|
changelog = "https://github.com/williballenthin/viv-utils/releases/tag/v${version}";
|
|
license = licenses.asl20;
|
|
maintainers = [ ];
|
|
};
|
|
}
|