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