61 lines
1.1 KiB
Nix
61 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
funcy,
|
|
intervaltree,
|
|
pefile,
|
|
pytest-sugar,
|
|
pytestCheckHook,
|
|
python-flirt,
|
|
pythonOlder,
|
|
setuptools-scm,
|
|
typing-extensions,
|
|
vivisect,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "viv-utils";
|
|
version = "0.7.11";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.9";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "williballenthin";
|
|
repo = "viv-utils";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-zYamhG5oeoYYVLEvv1EdZ1buFDByZatuCxbl0uRhk6Y=";
|
|
};
|
|
|
|
build-system = [ setuptools-scm ];
|
|
|
|
dependencies = [
|
|
funcy
|
|
intervaltree
|
|
pefile
|
|
typing-extensions
|
|
vivisect
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-sugar
|
|
pytestCheckHook
|
|
];
|
|
|
|
passthru = {
|
|
optional-dependencies = {
|
|
flirt = [ python-flirt ];
|
|
};
|
|
};
|
|
|
|
pythonImportsCheck = [ "viv_utils" ];
|
|
|
|
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 = [ ];
|
|
};
|
|
}
|