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