python313Packages.pystemd: fix build

Tom Hunze bda800cd 06c99c29

Changed files
+9 -9
pkgs
development
python-modules
pystemd
+9 -9
pkgs/development/python-modules/pystemd/default.nix
···
systemd,
lxml,
psutil,
-
pytest,
-
mock,
+
pytestCheckHook,
pkg-config,
cython,
}:
···
];
nativeCheckInputs = [
-
mock
-
pytest
+
pytestCheckHook
];
-
checkPhase = ''
-
runHook preCheck
-
# pytestCheckHook doesn't work
-
pytest tests
-
runHook postCheck
+
# Having the source root in `sys.path` causes import issues
+
preCheck = ''
+
cd tests
'';
+
+
disabledTestPaths = [
+
"test_version.py" # Requires cstq which is not in nixpkgs
+
];
pythonImportsCheck = [ "pystemd" ];