summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/viv-utils/default.nix
blob: 1f286aa844cf07ded70b84e28da4726b4a39dbe5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{
  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 = {
    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 = lib.licenses.asl20;
    maintainers = [ ];
  };
}