Merge pull request #64628 from mmahut/anonip

pythonPackages.anonip: init at 1.0.0
This commit is contained in:
worldofpeace 2019-07-11 12:16:38 -04:00 committed by GitHub
commit 95647d8aee
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,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 stdenv.lib; {
homepage = "https://github.com/DigitaleGesellschaft/Anonip";
description = "A tool to anonymize IP-addresses in log-files";
license = licenses.bsd3;
maintainers = [ maintainers.mmahut ];
};
}

View file

@ -1088,6 +1088,8 @@ in {
aniso8601 = callPackage ../development/python-modules/aniso8601 {};
anonip = callPackage ../development/python-modules/anonip { };
asgiref = callPackage ../development/python-modules/asgiref { };
python-editor = callPackage ../development/python-modules/python-editor { };