1 { lib, openbabel, python, buildPythonPackage }:
3 buildPythonPackage rec {
7 src = "${openbabel}/lib/python${python.sourceVersion.major}.${python.sourceVersion.minor}/site-packages";
9 nativeBuildInputs = [ openbabel ];
11 # these env variables are used by the bindings to find libraries
12 # they need to be included explicitly in your nix-shell for
13 # some functionality to work (inparticular, pybel).
14 # see https://openbabel.org/docs/dev/Installation/install.html
15 BABEL_LIBDIR = "${openbabel}/lib/openbabel/3.1.0";
16 LD_LIBRARY_PATH = "${openbabel}/lib";
19 pythonImportsCheck = [ "openbabel" ];
22 homepage = "http://openbabel.org/wiki/Main_Page";
23 description = "Python bindings for openbabel";
24 license = licenses.gpl2Plus;
25 maintainers = with maintainers; [ danielbarter ];