mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-02 04:50:21 +00:00
buildstream: install sample-plugins fixture for pip mirror test
test_source_mirror_plugin[pip] loads a source-mirror plugin via a `pip` origin, which resolves the plugin package through importlib.metadata. Build the `sample-plugins` test fixture package (shipped in buildstream's own tests/plugins/sample-plugins) and add it to nativeCheckInputs so its entry-point metadata is visible. Note: pyproject = true; build-system = [ setuptools ]; is required here even though the fixture only has a setup.py — setuptools synthesizes the PEP 517 backend for legacy projects. pyproject = false without a Makefile silently no-ops the build and install phases, producing an empty package. Assisted-by: Claude Code (claude-sonnet-5)
This commit is contained in:
@@ -94,12 +94,20 @@ python3Packages.buildPythonApplication (finalAttrs: {
|
||||
python3Packages.pytest-xdist
|
||||
python3Packages.pytestCheckHook
|
||||
versionCheckHook
|
||||
|
||||
# Test fixture plugin package used by test_source_mirror_plugin[pip]; upstream
|
||||
# normally installs this via tox before running the pip-origin plugin loading test.
|
||||
(python3Packages.buildPythonPackage {
|
||||
pname = "sample-plugins";
|
||||
version = "1.2.3";
|
||||
pyproject = true;
|
||||
build-system = [ python3Packages.setuptools ];
|
||||
src = "${finalAttrs.src}/tests/plugins/sample-plugins";
|
||||
dontCheck = true;
|
||||
})
|
||||
];
|
||||
|
||||
disabledTests = [
|
||||
# Error loading project: project.conf [line 37 column 2]: Failed to load source-mirror plugin 'mirror': No package metadata was found for sample-plugins
|
||||
"test_source_mirror_plugin"
|
||||
|
||||
# Runtime error: The FUSE stager child process unexpectedly died with exit code 2
|
||||
"test_patch_sources_cached_1"
|
||||
"test_patch_sources_cached_2"
|
||||
|
||||
Reference in New Issue
Block a user