Merge pull request #30473 from teto/pygccxml
[RDY] pygccxml + castxml + pybindgen
This commit is contained in:
23
pkgs/development/python-modules/pybindgen/default.nix
Normal file
23
pkgs/development/python-modules/pybindgen/default.nix
Normal file
@@ -0,0 +1,23 @@
|
||||
{ stdenv, fetchPypi, buildPythonPackage, setuptools_scm, pygccxml }:
|
||||
buildPythonPackage rec {
|
||||
pname = "PyBindGen";
|
||||
version = "0.18.0";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1sl4jn8rildv6f62cab66w791cixhaaxl7gwg9labs099rl74yl6";
|
||||
};
|
||||
|
||||
buildInputs = [ setuptools_scm ];
|
||||
|
||||
checkInputs = [ pygccxml ];
|
||||
|
||||
meta = with stdenv.lib; {
|
||||
homepage = https://github.com/gjcarneiro/pybindgen;
|
||||
description = "Python Bindings Generator";
|
||||
license = licenses.lgpl2;
|
||||
maintainers = with maintainers; [ teto ];
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
26
pkgs/development/python-modules/pygccxml/default.nix
Normal file
26
pkgs/development/python-modules/pygccxml/default.nix
Normal file
@@ -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 ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user