2021-02-05 17:12:51 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, ipaddress, isPy27 }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
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";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/DigitaleGesellschaft/Anonip";
|
|
|
|
description = "A tool to anonymize IP-addresses in log-files";
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = [ maintainers.mmahut ];
|
|
|
|
};
|
|
|
|
}
|