1{ lib
2, castxml
3, fetchFromGitHub
4, buildPythonPackage
5, llvmPackages
6, pythonOlder
7, setuptools
8}:
9
10buildPythonPackage rec {
11 pname = "pygccxml";
12 version = "2.4.0";
13 pyproject = true;
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "gccxml";
19 repo = "pygccxml";
20 rev = "refs/tags/v${version}";
21 hash = "sha256-rw99afv68c92LWmKUErB1y0Cts69UEpI0GCxSMvD+B8=";
22 };
23
24 nativeBuildInputs = [
25 setuptools
26 ];
27
28 buildInputs = [
29 castxml
30 llvmPackages.libcxxStdenv
31 ];
32
33 # running the suite is hard, needs to generate xml_generator.cfg
34 # but the format doesn't accept -isystem directives
35 doCheck = false;
36
37 meta = with lib; {
38 description = "Python package for easy C++ declarations navigation";
39 homepage = "https://github.com/gccxml/pygccxml";
40 changelog = "https://github.com/CastXML/pygccxml/blob/v${version}/CHANGELOG.md";
41 license = licenses.boost;
42 maintainers = with maintainers; [ teto ];
43 };
44}