summary refs log tree commit diff
path: root/pkgs/development/python-modules/viv-utils/default.nix
blob: e94c96f72b0b61e67a15176249a78292328cc600 (plain) (blame)
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
{ lib
, buildPythonPackage
, isPy3k
, fetchFromGitHub
, funcy
, pefile
, vivisect
, intervaltree
, setuptools
}:
buildPythonPackage rec {
  pname = "viv-utils";
  version = "0.3.17";
  disabled = isPy3k;

  src = fetchFromGitHub {
    owner = "williballenthin";
    repo = "viv-utils";
    rev = "v${version}";
    sha256 = "wZWp6PMn1to/jP6lzlY/x0IhS/0w0Ys7AdklNQ+Vmyc=";
  };

  # argparse is provided by Python itself
  preBuild = ''
    sed '/"argparse",/d' -i setup.py
  '';

  propagatedBuildInputs = [
    funcy
    pefile
    vivisect
    intervaltree
    setuptools
  ];

  # no tests
  doCheck = false;

  pythonImportsCheck = [
    "viv_utils"
  ];

  meta = with lib; {
    description = "Utilities for working with vivisect";
    homepage = "https://github.com/williballenthin/viv-utils";
    license = licenses.asl20;
    maintainers = teams.determinatesystems.members;
  };
}