1{ lib
2, buildPythonPackage
3, fetchPypi
4, isPy3k
5, pygccxml
6, pythonOlder
7, setuptools-scm
8}:
9
10buildPythonPackage rec {
11 pname = "pybindgen";
12 version = "0.22.1";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchPypi {
18 pname = "PyBindGen";
19 inherit version;
20 hash = "sha256-jH8iORpJqEUY9aKtBuOlseg50Q402nYxUZyKKPy6N2Q=";
21 };
22
23 buildInputs = [
24 setuptools-scm
25 ];
26
27 checkInputs = [
28 pygccxml
29 ];
30
31 pythonImportsCheck = [
32 "pybindgen"
33 ];
34
35 # Fails to import module 'cxxfilt' from pygccxml on Py3k
36 doCheck = (!isPy3k);
37
38 meta = with lib; {
39 description = "Python Bindings Generator";
40 homepage = "https://github.com/gjcarneiro/pybindgen";
41 license = licenses.lgpl21Plus;
42 maintainers = with maintainers; [ teto ];
43 };
44}