diff --git a/pkgs/development/python-modules/colcon-installed-package-information/default.nix b/pkgs/development/python-modules/colcon-installed-package-information/default.nix new file mode 100644 index 000000000000..09ded6a64ea4 --- /dev/null +++ b/pkgs/development/python-modules/colcon-installed-package-information/default.nix @@ -0,0 +1,57 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + # build-system + setuptools, + # dependencies + colcon, + importlib-metadata, + # tests + pytestCheckHook, + pytest-cov-stub, + scspell, + writableTmpDirAsHomeHook, +}: + +buildPythonPackage rec { + pname = "colcon-installed-package-information"; + version = "0.2.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "colcon"; + repo = "colcon-installed-package-information"; + tag = version; + hash = "sha256-7PjLWLwX5QwxWCN1iWOGB3cyArjnxQKT5BHmukj0MII="; + }; + + build-system = [ setuptools ]; + + dependencies = [ + colcon + importlib-metadata + ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-cov-stub + scspell + writableTmpDirAsHomeHook + ]; + + disabledTestPaths = [ + # Skip the linter tests that require additional dependencies + "test/test_flake8.py" + ]; + + pythonImportsCheck = [ "colcon_installed_package_information" ]; + + meta = { + description = "Extensions for colcon to inspect packages which have already been installed"; + homepage = "https://colcon.readthedocs.io/en/released/"; + downloadPage = "https://github.com/colcon/colcon-installed-package-information"; + 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 a5bcbbba1dda..14b42edaaa55 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2805,6 +2805,10 @@ self: super: with self; { colcon-defaults = callPackage ../development/python-modules/colcon-defaults { }; + colcon-installed-package-information = + callPackage ../development/python-modules/colcon-installed-package-information + { }; + colcon-library-path = callPackage ../development/python-modules/colcon-library-path { }; colcon-mixin = callPackage ../development/python-modules/colcon-mixin { };