1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, regex 7, requests 8}: 9 10buildPythonPackage rec { 11 pname = "iocextract"; 12 version = "1.16.1"; 13 format = "setuptools"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchFromGitHub { 18 owner = "InQuest"; 19 repo = "python-iocextract"; 20 rev = "refs/tags/v${version}"; 21 hash = "sha256-cCp9ug/TuVY1zL+kiDlFGBmfFJyAmVwxLD36WT0oRAE="; 22 }; 23 24 propagatedBuildInputs = [ 25 regex 26 requests 27 ]; 28 29 nativeCheckInputs = [ 30 pytestCheckHook 31 ]; 32 33 pythonImportsCheck = [ 34 "iocextract" 35 ]; 36 37 pytestFlagsArray = [ 38 "tests.py" 39 ]; 40 41 disabledTests = [ 42 # AssertionError: 'http://exampledotcom/test' != 'http://example.com/test' 43 "test_refang_data" 44 ]; 45 46 meta = with lib; { 47 description = "Module to extract Indicator of Compromises (IOC)"; 48 homepage = "https://github.com/InQuest/python-iocextract"; 49 changelog = "https://github.com/InQuest/python-iocextract/releases/tag/v${version}"; 50 license = licenses.gpl2Only; 51 maintainers = with maintainers; [ fab ]; 52 }; 53}