1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-29 17:10:48 +00:00
nixpkgs/pkgs/development/python-modules/anonip/default.nix
2021-01-25 18:31:47 +01:00

25 lines
645 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, ipaddress, isPy27 }:
buildPythonPackage rec {
pname = "anonip";
version = "1.0.0";
src = fetchFromGitHub {
owner = "DigitaleGesellschaft";
repo = "Anonip";
rev = "v${version}";
sha256 = "0y5xqivcinp6pwx4whc8ca1n2wxrvff7a2lpbz2dhivilfanmljs";
};
propagatedBuildInputs = lib.optionals isPy27 [ ipaddress ];
checkPhase = "python tests.py";
meta = with lib; {
homepage = "https://github.com/DigitaleGesellschaft/Anonip";
description = "A tool to anonymize IP-addresses in log-files";
license = licenses.bsd3;
maintainers = [ maintainers.mmahut ];
};
}