From e5705a82785458535315030d556cc71443d66d6f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 30 Dec 2025 22:12:55 +0100 Subject: [PATCH] python313Packages.cxxheaderparser: 1.6.0 -> 1.6.2 Changelog: https://github.com/robotpy/cxxheaderparser/releases/tag/1.6.2 --- .../cxxheaderparser/default.nix | 21 ++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/cxxheaderparser/default.nix b/pkgs/development/python-modules/cxxheaderparser/default.nix index c4c39941a610..08ca4d5c238a 100644 --- a/pkgs/development/python-modules/cxxheaderparser/default.nix +++ b/pkgs/development/python-modules/cxxheaderparser/default.nix @@ -1,22 +1,23 @@ { + lib, buildPythonPackage, fetchFromGitHub, - lib, + hatch-vcs, + hatchling, pcpp, pytestCheckHook, - setuptools, }: buildPythonPackage rec { pname = "cxxheaderparser"; - version = "1.6.0"; + version = "1.6.2"; pyproject = true; src = fetchFromGitHub { owner = "robotpy"; repo = "cxxheaderparser"; - rev = version; - hash = "sha256-3nQCUb2sgF91ilREHj/fb8IoMTHjPoOFWGzkbssGqFY="; + tag = version; + hash = "sha256-AvSwt8ED+w1WlLwa8DPP9+zG8g5c8p51mvQx8ZfDMqk="; }; postPatch = '' @@ -24,15 +25,21 @@ buildPythonPackage rec { echo "__version__ = '${version}'" > cxxheaderparser/version.py ''; - build-system = [ setuptools ]; + build-system = [ + hatch-vcs + hatchling + ]; checkInputs = [ pcpp ]; + nativeCheckInputs = [ pytestCheckHook ]; + pythonImportsCheck = [ "cxxheaderparser" ]; meta = { - description = "Modern pure python C++ header parser"; + description = "Modern pure Python C++ header parser"; homepage = "https://github.com/robotpy/cxxheaderparser"; + changelog = "https://github.com/robotpy/cxxheaderparser/releases/tag/${src.tag}"; license = lib.licenses.bsd3; maintainers = with lib.maintainers; [ nim65s ]; platforms = lib.platforms.unix;