python3Packages.colcon-cargo: disable broken tests (#499366)

This commit is contained in:
Nick Cao
2026-03-12 21:19:02 +00:00
committed by GitHub
@@ -11,7 +11,7 @@
toml,
writableTmpDirAsHomeHook,
}:
buildPythonPackage rec {
buildPythonPackage (finalAttrs: {
pname = "colcon-cargo";
version = "0.2.0";
pyproject = true;
@@ -19,7 +19,7 @@ buildPythonPackage rec {
src = fetchFromGitHub {
owner = "colcon";
repo = "colcon-cargo";
tag = version;
tag = finalAttrs.version;
hash = "sha256-jhc5mN4jnLk2zLj01sBm63acrku/FIexnIWCQ6GKDKA=";
};
@@ -38,6 +38,12 @@ buildPythonPackage rec {
writableTmpDirAsHomeHook
];
disabledTests = [
# Attempts to download https://index.crates.io/config.json at test time
"test_build_and_test_package"
"test_skip_pure_library_package"
];
disabledTestPaths = [
# Skip the linter tests
"test/test_flake8.py"
@@ -50,7 +56,8 @@ buildPythonPackage rec {
meta = {
description = "Extension for colcon-core to support Rust packages built with Cargo";
homepage = "https://github.com/colcon/colcon-cargo";
changelog = "https://github.com/colcon/colcon-cargo/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ guelakais ];
};
}
})