about summary refs log tree commit diff
path: root/pkgs/development/python-modules/iocsearcher/default.nix
blob: a485e3df6219cb530d3de1c1ff2b9f96af0c44ff (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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{ lib
, beautifulsoup4
, buildPythonPackage
, fetchFromGitHub
, base58
, bech32
, cashaddress
, cbor
, eth-hash
, intervaltree
, langdetect
, lxml
, pdfminer-six
, phonenumbers
, python-magic
, readabilipy
, pytestCheckHook
, pythonOlder
, setuptools
}:

buildPythonPackage rec {
  pname = "iocsearcher";
  version = "2.3-unstable-2024-03-04";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "malicialab";
    repo = "iocsearcher";
    rev = "5f7b87761f2195eb358006f3492f0beac7ecc4b0";
    hash = "sha256-SYh0+JEZa95iBznNzXut/9Vwof6VFeSlt0/g+XmMPC0=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    base58
    beautifulsoup4
    bech32
    cashaddress
    cbor
    eth-hash
    intervaltree
    langdetect
    lxml
    pdfminer-six
    phonenumbers
    python-magic
    readabilipy
  ] ++ eth-hash.optional-dependencies.pycryptodome;

  # Module has no tests
  doCheck = false;

  pythonImportsCheck = [
    "iocsearcher"
  ];

  meta = with lib; {
    description = "Library and command line tool for extracting indicators of compromise (IOCs)";
    mainProgram = "iocsearcher";
    homepage = "https://github.com/malicialab/iocsearcher";
    changelog = "https://github.com/malicialab/iocsearcher/releases/tag/v${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ fab ];
  };
}