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 d859dc425281..9490fef70bf5 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2872,6 +2872,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 { };