diff --git a/pkgs/development/python-modules/colcon-defaults/default.nix b/pkgs/development/python-modules/colcon-defaults/default.nix new file mode 100644 index 000000000000..ec88506b73e7 --- /dev/null +++ b/pkgs/development/python-modules/colcon-defaults/default.nix @@ -0,0 +1,61 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + # build-system + setuptools, + #dependencies + colcon, + pyaml, + # tests + pytestCheckHook, + pytest-cov-stub, + pytest-repeat, + pytest-rerunfailures, + scspell, + writableTmpDirAsHomeHook, +}: +buildPythonPackage rec { + pname = "colcon-defaults"; + version = "0.2.9"; + pyproject = true; + + src = fetchFromGitHub { + owner = "colcon"; + repo = "colcon-defaults"; + tag = version; + hash = "sha256-Nb6D9jpbCvUnCNgRLBgWQFybNx0hyWVLSKj6gmTWjVs="; + }; + + build-system = [ + setuptools + ]; + + dependencies = [ + colcon + pyaml + ]; + + nativeCheckInputs = [ + pytestCheckHook + pytest-cov-stub + pytest-repeat + pytest-rerunfailures + scspell + writableTmpDirAsHomeHook + ]; + + disabledTestPaths = [ + # Skip formatting checks to prevent depending on flake8 + "test/test_flake8.py" + ]; + + pythonImportsCheck = [ "colcon_defaults" ]; + + meta = { + description = "Extension for colcon to read defaults from a config file"; + homepage = "https://github.com/colcon/colcon-defaults"; + 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 23bce3243eca..a8cd8cf40b74 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -2665,6 +2665,8 @@ self: super: with self; { colcon-argcomplete = callPackage ../development/python-modules/colcon-argcomplete { }; + colcon-defaults = callPackage ../development/python-modules/colcon-defaults { }; + collections-extended = callPackage ../development/python-modules/collections-extended { }; collidoscope = callPackage ../development/python-modules/collidoscope { };