mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-26 10:14:48 +00:00
generated using https://git.kybe.xyz/2kybe3/nixpkgs-github-redirect continuation of: #538981
47 lines
1.0 KiB
Nix
47 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytestCheckHook,
|
|
regex,
|
|
requests,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "iocextract";
|
|
version = "1.16.1";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pedramamini";
|
|
repo = "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/pedramamini/iocextract";
|
|
changelog = "https://github.com/pedramamini/iocextract/releases/tag/v${version}";
|
|
license = lib.licenses.gpl2Only;
|
|
maintainers = with lib.maintainers; [ fab ];
|
|
};
|
|
}
|