Files
nixpkgs/pkgs/development/python-modules/colcon-cargo/default.nix
T
2026-03-12 13:32:22 -07:00

64 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
colcon,
cargo,
fetchFromGitHub,
scspell,
setuptools,
pytestCheckHook,
rustfmt,
toml,
writableTmpDirAsHomeHook,
}:
buildPythonPackage (finalAttrs: {
pname = "colcon-cargo";
version = "0.2.0";
pyproject = true;
src = fetchFromGitHub {
owner = "colcon";
repo = "colcon-cargo";
tag = finalAttrs.version;
hash = "sha256-jhc5mN4jnLk2zLj01sBm63acrku/FIexnIWCQ6GKDKA=";
};
build-system = [ setuptools ];
dependencies = [
colcon
toml
];
nativeCheckInputs = [
cargo
pytestCheckHook
scspell
rustfmt
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"
];
pythonImportsCheck = [
"colcon_cargo"
];
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 ];
};
})