Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, pythonOlder 6, regex 7}: 8 9buildPythonPackage rec { 10 pname = "iocextract"; 11 version = "1.15.2"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "InQuest"; 18 repo = "python-iocextract"; 19 rev = "refs/tags/v${version}"; 20 hash = "sha256-l0TGi3Y3/Dcwyp80eRWYYlDaDDJdpc31fcxdYEVvQas="; 21 }; 22 23 propagatedBuildInputs = [ 24 regex 25 ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 ]; 30 31 pythonImportsCheck = [ 32 "iocextract" 33 ]; 34 35 pytestFlagsArray = [ 36 "tests.py" 37 ]; 38 39 meta = with lib; { 40 description = "Module to extract Indicator of Compromises (IOC)"; 41 homepage = "https://github.com/InQuest/python-iocextract"; 42 changelog = "https://github.com/InQuest/python-iocextract/releases/tag/v${version}"; 43 license = licenses.gpl2Only; 44 maintainers = with maintainers; [ fab ]; 45 }; 46}