diff --git a/pkgs/development/python-modules/cppheaderparser/default.nix b/pkgs/development/python-modules/cppheaderparser/default.nix new file mode 100644 index 000000000000..688d394198f4 --- /dev/null +++ b/pkgs/development/python-modules/cppheaderparser/default.nix @@ -0,0 +1,26 @@ +{ buildPythonPackage +, fetchPypi +, ply +, stdenv +}: + +buildPythonPackage rec { + pname = "CppHeaderParser"; + version = "2.7.4"; + + src = fetchPypi { + inherit pname version; + sha256 = "sha256-OCswQW2VsKXoUCshSBDcrCpWQykX4mUUR9Or4lPjzEI="; + }; + + propagatedBuildInputs = [ ply ]; + + pythonImportsCheck = [ "CppHeaderParser" ]; + + meta = with stdenv.lib; { + description = "Parse C++ header files using ply.lex to generate navigable class tree representing the class structure"; + homepage = "https://sourceforge.net/projects/cppheaderparser/"; + license = licenses.bsdOriginal; + maintainers = with maintainers; [ pamplemousse ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 83df9f6a7993..10ab7ea94979 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -1321,6 +1321,8 @@ in { cozy = callPackage ../development/python-modules/cozy { }; + cppheaderparser = callPackage ../development/python-modules/cppheaderparser { }; + cppy = callPackage ../development/python-modules/cppy { }; cram = callPackage ../development/python-modules/cram { };