clamav: Fix check failure of clamscan no tests

It seems like clamav uses `pytest` as a test runner preferentially, then
falls back to `unittest`. For some reason `unittest` isn't discovering
the tests inside clamav/unit_test/clamscan, and instead exitting with
`sys.exit(_NO_TESTS_EXITCODE)`.

I have checked actual `clamscan` tests are being run using
`nix develop .#clamscan`, `genericBuild`, `checkPhase` then manually
running `ctest -V`.

Fixes https://github.com/NixOS/nixpkgs/issues/325510
This commit is contained in:
Robert Kovacsics 2024-07-12 11:36:58 +01:00
parent 6af55cb91c
commit 9485537de6

View File

@ -33,6 +33,10 @@ stdenv.mkDerivation rec {
doCheck = true;
checkInputs = [
python3.pkgs.pytest
];
meta = with lib; {
homepage = "https://www.clamav.net";
description = "Antivirus engine designed for detecting Trojans, viruses, malware and other malicious threats";