nixpkgs/pkgs/development/python-modules/cxxheaderparser/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

41 lines
914 B
Nix
Raw Permalink Normal View History

{
buildPythonPackage,
fetchFromGitHub,
lib,
pcpp,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "cxxheaderparser";
version = "1.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "robotpy";
repo = "cxxheaderparser";
rev = version;
hash = "sha256-+Q8EaVhx8/e+37GEHW3In5tMTIMl+5MySuCLgAzTypo=";
};
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;
};
}