Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / viv-utils / default.nix
blobe411a2dd5758c67209a5c9ca3ce837526ad08ed5
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , funcy
5 , intervaltree
6 , pefile
7 , typing-extensions
8 , vivisect
9 , pytest-sugar
10 , pytestCheckHook
11 , python-flirt
13 buildPythonPackage rec {
14   pname = "viv-utils";
15   version = "0.7.9";
16   format = "setuptools";
18   src = fetchFromGitHub {
19     owner = "williballenthin";
20     repo = "viv-utils";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-xM3jtA6fNk36+enL/EcQH59CNajYnGlEDu06QXIFz6A=";
23   };
25   postPatch = ''
26     substituteInPlace setup.py \
27       --replace "==" ">="
28   '';
30   propagatedBuildInputs = [
31     funcy
32     intervaltree
33     pefile
34     typing-extensions
35     vivisect
36   ];
38   nativeCheckInputs = [
39     pytest-sugar
40     pytestCheckHook
41   ];
43   passthru = {
44     optional-dependencies = {
45       flirt = [
46         python-flirt
47       ];
48     };
49   };
51   meta = with lib; {
52     description = "Utilities for working with vivisect";
53     homepage = "https://github.com/williballenthin/viv-utils";
54     changelog = "https://github.com/williballenthin/viv-utils/releases/tag/v${version}";
55     license = licenses.asl20;
56     maintainers = [ ];
57   };