depot/third_party/nixpkgs/pkgs/development/python-modules/iocextract/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

49 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
regex,
requests,
}:
buildPythonPackage rec {
pname = "iocextract";
version = "1.16.1";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "InQuest";
repo = "python-iocextract";
rev = "refs/tags/v${version}";
hash = "sha256-cCp9ug/TuVY1zL+kiDlFGBmfFJyAmVwxLD36WT0oRAE=";
};
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)";
mainProgram = "iocextract";
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 ];
};
}