blob: 6dc9b8138e3ca807eacff774e880a291b4b4a9e5 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
python-dateutil,
pytz,
requests,
setuptools,
}:
buildPythonPackage rec {
pname = "otxv2";
version = "1.5.12";
pyproject = true;
src = fetchFromGitHub {
owner = "AlienVault-OTX";
repo = "OTX-Python-SDK";
tag = version;
hash = "sha256-JAjBXNsX0Cuni+4L6I1RuaSfors5cBAZ2krPLhIFluY=";
};
build-system = [ setuptools ];
dependencies = [
python-dateutil
pytz
requests
];
# Tests require network access
doCheck = false;
pythonImportsCheck = [ "OTXv2" ];
meta = {
description = "The Python SDK for AlienVault OTX";
homepage = "https://github.com/AlienVault-OTX/OTX-Python-SDK";
changelog = "https://github.com/AlienVault-OTX/OTX-Python-SDK/releases/tag/${src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
}
|