depot/third_party/nixpkgs/pkgs/development/python-modules/cxxheaderparser/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

40 lines
914 B
Nix

{
buildPythonPackage,
fetchFromGitHub,
lib,
pcpp,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "cxxheaderparser";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "robotpy";
repo = "cxxheaderparser";
rev = version;
hash = "sha256-Gf7O1jFICLUcN0z4WYQmh7co2AxdzJY+tdXzu/AdG/g=";
};
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 ];
platforms = lib.platforms.unix;
};
}