nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 37 lines 774 B view raw
1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pytest-cov-stub, 7}: 8 9buildPythonPackage rec { 10 pname = "anonip"; 11 version = "1.1.0"; 12 format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = "DigitaleGesellschaft"; 16 repo = "Anonip"; 17 rev = "v${version}"; 18 sha256 = "0cssdcridadjzichz1vv1ng7jwphqkn8ihh83hpz9mcjmxyb94qc"; 19 }; 20 21 nativeCheckInputs = [ 22 pytestCheckHook 23 pytest-cov-stub 24 ]; 25 26 enabledTestPaths = [ "tests.py" ]; 27 28 pythonImportsCheck = [ "anonip" ]; 29 30 meta = { 31 description = "Tool to anonymize IP addresses in log files"; 32 mainProgram = "anonip"; 33 homepage = "https://github.com/DigitaleGesellschaft/Anonip"; 34 license = lib.licenses.bsd3; 35 maintainers = with lib.maintainers; [ mmahut ]; 36 }; 37}