mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
46 lines
898 B
Nix
46 lines
898 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "anonip";
|
|
version = "1.1.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "DigitaleGesellschaft";
|
|
repo = "Anonip";
|
|
rev = "v${version}";
|
|
sha256 = "0cssdcridadjzichz1vv1ng7jwphqkn8ihh83hpz9mcjmxyb94qc";
|
|
};
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg \
|
|
--replace " --cov=anonip --cov-report=term-missing --no-cov-on-fail" ""
|
|
'';
|
|
|
|
pytestFlagsArray = [
|
|
"tests.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"anonip"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Tool to anonymize IP addresses in log files";
|
|
homepage = "https://github.com/DigitaleGesellschaft/Anonip";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ mmahut ];
|
|
};
|
|
}
|