2024-09-19 14:19:46 +00:00
|
|
|
{
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
lib,
|
|
|
|
pcpp,
|
|
|
|
pytestCheckHook,
|
|
|
|
setuptools,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "cxxheaderparser";
|
2024-10-04 16:56:33 +00:00
|
|
|
version = "1.4.0";
|
2024-09-19 14:19:46 +00:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "robotpy";
|
|
|
|
repo = "cxxheaderparser";
|
|
|
|
rev = version;
|
2024-10-04 16:56:33 +00:00
|
|
|
hash = "sha256-Gf7O1jFICLUcN0z4WYQmh7co2AxdzJY+tdXzu/AdG/g=";
|
2024-09-19 14:19:46 +00: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-10-04 16:56:33 +00:00
|
|
|
platforms = lib.platforms.unix;
|
2024-09-19 14:19:46 +00:00
|
|
|
};
|
|
|
|
}
|