From 215e3ccdc8cf7cbd682d7459390443e5f33fb5e0 Mon Sep 17 00:00:00 2001 From: GueLaKais Date: Mon, 1 Sep 2025 19:56:23 +0200 Subject: [PATCH] python313Packages.colcon-devtools: init at 0.3.0 --- .../colcon-devtools/default.nix | 62 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 64 insertions(+) create mode 100644 pkgs/development/python-modules/colcon-devtools/default.nix diff --git a/pkgs/development/python-modules/colcon-devtools/default.nix b/pkgs/development/python-modules/colcon-devtools/default.nix new file mode 100644 index 000000000000..d9883b8a3097 --- /dev/null +++ b/pkgs/development/python-modules/colcon-devtools/default.nix @@ -0,0 +1,62 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + # build-system + setuptools, + # dependencies + colcon, + packaging, + # tests + pytestCheckHook, + pytest-cov-stub, + scspell, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "colcon-devtools"; + version = "0.3.0"; + pyproject = true; + + src = fetchFromGitHub { + owner = "colcon"; + repo = "colcon-devtools"; + tag = version; + hash = "sha256-QBkShQ58QHhYtlKtYaj9/Zs8KMy/Cw55lJHM16uNoxI="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + colcon + packaging + ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-cov-stub + scspell + writableTmpDirAsHomeHook + ]; + + disabledTestPaths = [ + # Skip the linter tests that require additional dependencies + "test/test_flake8.py" + ]; + + pythonImportsCheck = [ "colcon_devtools" ]; + + pythonRemoveDeps = [ + # We use pytest-cov-stub instead (and it is not a runtime dependency anyways) + "pytest-cov" + ]; + + meta = { + description = "Extension for colcon to provide information about all extension points and extensions"; + homepage = "https://colcon.readthedocs.io/en/released/"; + downloadPage = "https://github.com/colcon/colcon-devtools"; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ guelakais ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1b141422199a..aa0879b1ea14 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2811,6 +2811,8 @@ self: super: with self; { colcon-defaults = callPackage ../development/python-modules/colcon-defaults { }; + colcon-devtools = callPackage ../development/python-modules/colcon-devtools { }; + colcon-installed-package-information = callPackage ../development/python-modules/colcon-installed-package-information { };