1{ 2 lib, 3 openbabel, 4 python, 5 buildPythonPackage, 6}: 7 8buildPythonPackage { 9 inherit (openbabel) pname version; 10 11 src = "${openbabel}/${python.sitePackages}"; 12 13 buildInputs = [ openbabel ]; 14 15 # these env variables are used by the bindings to find libraries 16 # they need to be included explicitly in your nix-shell for 17 # some functionality to work (inparticular, pybel). 18 # see https://openbabel.org/docs/dev/Installation/install.html 19 BABEL_LIBDIR = "${openbabel}/lib/openbabel/3.1.0"; 20 LD_LIBRARY_PATH = "${openbabel}/lib"; 21 22 doCheck = false; 23 pythonImportsCheck = [ "openbabel" ]; 24 25 meta = with lib; { 26 homepage = "http://openbabel.org/wiki/Main_Page"; 27 description = "Python bindings for openbabel"; 28 license = licenses.gpl2Plus; 29 maintainers = with maintainers; [ danielbarter ]; 30 }; 31}