nixpkgs/pkgs/development/python-modules/viv-utils/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

58 lines
1 KiB
Nix
Raw Normal View History

2021-04-18 23:05:16 +00:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, funcy
, intervaltree
2021-04-18 23:05:16 +00:00
, pefile
, typing-extensions
2021-04-18 23:05:16 +00:00
, vivisect
, pytest-sugar
, pytestCheckHook
, python-flirt
2021-04-18 23:05:16 +00:00
}:
buildPythonPackage rec {
pname = "viv-utils";
version = "0.7.7";
2021-04-18 23:05:16 +00:00
src = fetchFromGitHub {
owner = "williballenthin";
repo = "viv-utils";
rev = "refs/tags/v${version}";
hash = "sha256-ih6CtnsGfHRLDjoaF7BkoUENu+0pU3NB6TG0A70f3nE=";
2021-04-18 23:05:16 +00:00
};
postPatch = ''
substituteInPlace setup.py \
--replace "==" ">="
2021-04-18 23:05:16 +00:00
'';
propagatedBuildInputs = [
funcy
intervaltree
2021-04-18 23:05:16 +00:00
pefile
typing-extensions
2021-04-18 23:05:16 +00:00
vivisect
];
nativeCheckInputs = [
pytest-sugar
pytestCheckHook
2021-04-18 23:05:16 +00:00
];
passthru = {
optional-dependencies = {
flirt = [
python-flirt
];
};
};
2021-04-18 23:05:16 +00:00
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}";
2021-04-18 23:05:16 +00:00
license = licenses.asl20;
2023-03-22 14:17:37 +00:00
maintainers = [ ];
2021-04-18 23:05:16 +00:00
};
}