mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
pythonPackages.python-prctl: disabled tests causing build failure
Now disables tests using pytestCheckHook + disabledTests instead of patch file. Disables: - test_speculation_ctrl - test_mpx Enables: - test_mce_kill - test_proctitle
This commit is contained in:
parent
83f741080e
commit
d29570fd37
2 changed files with 18 additions and 35 deletions
|
@ -2,6 +2,7 @@
|
|||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, libcap
|
||||
, pytestCheckHook
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -13,9 +14,25 @@ buildPythonPackage rec {
|
|||
sha256 = "b4ca9a25a7d4f1ace4fffd1f3a2e64ef5208fe05f929f3edd5e27081ca7e67ce";
|
||||
};
|
||||
|
||||
patches = [ ./skip_bad_tests.patch ];
|
||||
buildInputs = [ libcap ];
|
||||
|
||||
checkInputs = [ pytestCheckHook ];
|
||||
|
||||
disabledTests = [
|
||||
# Intel MPX support was removed in GCC 9.1 & Linux kernel 5.6
|
||||
"test_mpx"
|
||||
|
||||
# The Nix build sandbox has no_new_privs already enabled
|
||||
"test_no_new_privs"
|
||||
|
||||
# The Nix build sandbox has seccomp already enabled
|
||||
"test_seccomp"
|
||||
|
||||
# This will fail if prctl(PR_SET_SPECULATION_CTRL, PR_SPEC_FORCE_DISABLE)
|
||||
# has been set system-wide, even outside the sandbox
|
||||
"test_speculation_ctrl"
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Python(ic) interface to the linux prctl syscall";
|
||||
homepage = "https://github.com/seveas/python-prctl";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue