nixpkgs/pkgs/development/python-modules/anonip/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

46 lines
892 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
}:
2019-07-11 16:03:48 +02:00
buildPythonPackage rec {
pname = "anonip";
2022-01-14 01:58:05 +01:00
version = "1.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
2019-07-11 16:03:48 +02:00
src = fetchFromGitHub {
owner = "DigitaleGesellschaft";
repo = "Anonip";
rev = "v${version}";
2022-01-14 01:58:05 +01:00
sha256 = "0cssdcridadjzichz1vv1ng7jwphqkn8ihh83hpz9mcjmxyb94qc";
2019-07-11 16:03:48 +02:00
};
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.cfg \
--replace " --cov=anonip --cov-report=term-missing --no-cov-on-fail" ""
'';
pytestFlagsArray = [
"tests.py"
];
2019-07-11 16:03:48 +02:00
pythonImportsCheck = [
"anonip"
];
2019-07-11 16:03:48 +02:00
meta = with lib; {
description = "Tool to anonymize IP addresses in log files";
2019-07-11 16:03:48 +02:00
homepage = "https://github.com/DigitaleGesellschaft/Anonip";
license = licenses.bsd3;
maintainers = with maintainers; [ mmahut ];
2019-07-11 16:03:48 +02:00
};
}