depot/third_party/nixpkgs/pkgs/development/python-modules/viv-utils/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

58 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.9";
format = "setuptools";
src = fetchFromGitHub {
owner = "williballenthin";
repo = "viv-utils";
rev = "refs/tags/v${version}";
hash = "sha256-xM3jtA6fNk36+enL/EcQH59CNajYnGlEDu06QXIFz6A=";
};
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 = [ ];
};
}