Something went wrong. Try again.
lol
Something went wrong. Try again.
1.0 kB · 47 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748{ lib, buildPythonPackage, fetchFromGitHub, hatch-vcs, hatchling, pcpp, pytestCheckHook,}:
buildPythonPackage rec { pname = "cxxheaderparser"; version = "1.7.0"; pyproject = true;
src = fetchFromGitHub { owner = "robotpy"; repo = "cxxheaderparser"; tag = version; hash = "sha256-Go5oIYwB2DONPbgajQuXfgpUCiGZvgcTZuFJ5z5qC3U="; };
postPatch = '' # version.py is generated based on latest git tag echo "__version__ = '${version}'" > cxxheaderparser/version.py '';
build-system = [ hatch-vcs hatchling ];
checkInputs = [ pcpp ];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "cxxheaderparser" ];
meta = { 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; };}