1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7}: 8 9buildPythonPackage rec { 10 pname = "anonip"; 11 version = "1.1.0"; 12 format = "setuptools"; 13 14 disabled = pythonOlder "3.7"; 15 16 src = fetchFromGitHub { 17 owner = "DigitaleGesellschaft"; 18 repo = "Anonip"; 19 rev = "v${version}"; 20 sha256 = "0cssdcridadjzichz1vv1ng7jwphqkn8ihh83hpz9mcjmxyb94qc"; 21 }; 22 23 nativeCheckInputs = [ pytestCheckHook ]; 24 25 postPatch = '' 26 substituteInPlace setup.cfg \ 27 --replace " --cov=anonip --cov-report=term-missing --no-cov-on-fail" "" 28 ''; 29 30 pytestFlagsArray = [ "tests.py" ]; 31 32 pythonImportsCheck = [ "anonip" ]; 33 34 meta = with lib; { 35 description = "Tool to anonymize IP addresses in log files"; 36 mainProgram = "anonip"; 37 homepage = "https://github.com/DigitaleGesellschaft/Anonip"; 38 license = licenses.bsd3; 39 maintainers = with maintainers; [ mmahut ]; 40 }; 41}