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

41 lines
915 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "anonip";
version = "1.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "DigitaleGesellschaft";
repo = "Anonip";
rev = "v${version}";
sha256 = "0cssdcridadjzichz1vv1ng7jwphqkn8ihh83hpz9mcjmxyb94qc";
};
nativeCheckInputs = [ pytestCheckHook ];
postPatch = ''
substituteInPlace setup.cfg \
--replace " --cov=anonip --cov-report=term-missing --no-cov-on-fail" ""
'';
pytestFlagsArray = [ "tests.py" ];
pythonImportsCheck = [ "anonip" ];
meta = with lib; {
description = "Tool to anonymize IP addresses in log files";
mainProgram = "anonip";
homepage = "https://github.com/DigitaleGesellschaft/Anonip";
license = licenses.bsd3;
maintainers = with maintainers; [ mmahut ];
};
}