blob: a407d7f51271da7072eb0a4a5ad46d5006099c9e (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
regex,
requests,
}:
buildPythonPackage rec {
pname = "iocextract";
version = "1.16.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "InQuest";
repo = "python-iocextract";
tag = "v${version}";
hash = "sha256-cCp9ug/TuVY1zL+kiDlFGBmfFJyAmVwxLD36WT0oRAE=";
};
propagatedBuildInputs = [
regex
requests
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "iocextract" ];
enabledTestPaths = [ "tests.py" ];
disabledTests = [
# AssertionError: 'http://exampledotcom/test' != 'http://example.com/test'
"test_refang_data"
];
meta = {
description = "Module to extract Indicator of Compromises (IOC)";
mainProgram = "iocextract";
homepage = "https://github.com/InQuest/python-iocextract";
changelog = "https://github.com/InQuest/python-iocextract/releases/tag/v${version}";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ fab ];
};
}
|