summary refs log tree commit diff
path: root/pkgs/development/python-modules/anonip/default.nix
blob: 9c1b3abf9800fef3f84f537927a0a8ce292a7abf (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, 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 ];
  };
}