summary refs log tree commit diff
path: root/pkgs/development/python-modules/pygccxml
diff options
context:
space:
mode:
authorMatthieu Coudron <mattator@gmail.com>2017-10-19 14:55:01 +0900
committerMatthieu Coudron <mattator@gmail.com>2018-04-05 19:15:58 +0900
commit604aa24f853d6f7dda7c11f0aab22d01ad03dbc6 (patch)
treef802f347bb709fa1009cb00915764da493690e51 /pkgs/development/python-modules/pygccxml
parent37210d4938cd6877208a07363ca72e480f93fe43 (diff)
downloadnixpkgs-604aa24f853d6f7dda7c11f0aab22d01ad03dbc6.tar
nixpkgs-604aa24f853d6f7dda7c11f0aab22d01ad03dbc6.tar.gz
nixpkgs-604aa24f853d6f7dda7c11f0aab22d01ad03dbc6.tar.bz2
nixpkgs-604aa24f853d6f7dda7c11f0aab22d01ad03dbc6.tar.lz
nixpkgs-604aa24f853d6f7dda7c11f0aab22d01ad03dbc6.tar.xz
nixpkgs-604aa24f853d6f7dda7c11f0aab22d01ad03dbc6.tar.zst
nixpkgs-604aa24f853d6f7dda7c11f0aab22d01ad03dbc6.zip
pygccxml: init at 1.9.1
Python library to play with castxml output, aka your program's clang-produced AST.
Diffstat (limited to 'pkgs/development/python-modules/pygccxml')
-rw-r--r--pkgs/development/python-modules/pygccxml/default.nix26
1 files changed, 26 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/pygccxml/default.nix b/pkgs/development/python-modules/pygccxml/default.nix
new file mode 100644
index 00000000000..5271677dc1e
--- /dev/null
+++ b/pkgs/development/python-modules/pygccxml/default.nix
@@ -0,0 +1,26 @@
+{ stdenv, castxml, fetchFromGitHub, buildPythonPackage,
+llvmPackages, clang }:
+buildPythonPackage rec {
+  pname = "pygccxml";
+  version = "1.9.1";
+
+  src = fetchFromGitHub {
+    owner  = "gccxml";
+    repo   = "pygccxml";
+    rev    = "v${version}";
+    sha256 = "02ip03s0vmp7czzflbvf7qnybibfrd0rzqbc5zfmq3zmpnck3hvm";
+  };
+
+  buildInputs = [ castxml llvmPackages.libcxxStdenv];
+
+  # running the suite is hard, needs to generate xml_generator.cfg
+  # but the format doesn't accept -isystem directives
+  doCheck = false;
+
+  meta = with stdenv.lib; {
+    homepage = https://github.com/gccxml/pygccxml;
+    description = "Python package for easy C++ declarations navigation";
+    license = licenses.boost;
+    maintainers = with maintainers; [ teto ];
+  };
+}