Files
nixpkgs/pkgs/development/python-modules/viv-utils/default.nix
2025-10-08 20:33:00 +02:00

59 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
funcy,
intervaltree,
pefile,
pytest-sugar,
pytestCheckHook,
python-flirt,
setuptools-scm,
typing-extensions,
vivisect,
}:
buildPythonPackage rec {
pname = "viv-utils";
version = "0.8.1";
pyproject = true;
src = fetchFromGitHub {
owner = "williballenthin";
repo = "viv-utils";
tag = "v${version}";
hash = "sha256-YyD6CFA8lhc1XU7pckKv3th422ssYZkRJ/JfQD5e65c=";
};
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/${src.tag}";
license = licenses.asl20;
maintainers = [ ];
};
}