2024-08-09 18:56:38 +02:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
pcpp,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cxxheaderparser";
|
2025-03-29 12:33:25 +01:00
|
|
|
version = "1.5.0";
|
2024-08-09 18:56:38 +02:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "robotpy";
|
|
|
|
repo = "cxxheaderparser";
|
2025-04-08 02:51:45 -04:00
|
|
|
rev = version;
|
2025-03-29 12:33:25 +01:00
|
|
|
hash = "sha256-+Q8EaVhx8/e+37GEHW3In5tMTIMl+5MySuCLgAzTypo=";
|
2024-08-09 18:56:38 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
# version.py is generated based on latest git tag
|
|
|
|
echo "__version__ = '${version}'" > cxxheaderparser/version.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
|
|
|
|
checkInputs = [ pcpp ];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
pythonImportsCheck = [ "cxxheaderparser" ];
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
description = "Modern pure python C++ header parser";
|
|
|
|
homepage = "https://github.com/robotpy/cxxheaderparser";
|
|
|
|
license = lib.licenses.bsd3;
|
|
|
|
maintainers = with lib.maintainers; [ nim65s ];
|
2024-09-30 13:14:57 +02:00
|
|
|
platforms = lib.platforms.unix;
|
2024-08-09 18:56:38 +02:00
|
|
|
};
|
|
|
|
}
|