Diff: https://github.com/InQuest/python-iocextract/compare/refs/tags/v1.15.2...v1.16.0 Changelog: https://github.com/InQuest/python-iocextract/releases/tag/v1.16.0
54 lines
1 KiB
Nix
54 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, regex
|
|
, requests
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "iocextract";
|
|
version = "1.16.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "InQuest";
|
|
repo = "python-iocextract";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-jwMu4G146FpH6aFCiZK9tI/3CKnZYC2RCtO9QXXaquQ=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
regex
|
|
requests
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"iocextract"
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
"tests.py"
|
|
];
|
|
|
|
disabledTests = [
|
|
# AssertionError: 'http://exampledotcom/test' != 'http://example.com/test'
|
|
"test_refang_data"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Module to extract Indicator of Compromises (IOC)";
|
|
homepage = "https://github.com/InQuest/python-iocextract";
|
|
changelog = "https://github.com/InQuest/python-iocextract/releases/tag/v${version}";
|
|
license = licenses.gpl2Only;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|