1{ lib, openbabel, python, buildPythonPackage }:
2
3buildPythonPackage rec {
4 pname = "openbabel";
5 version = "3.1.1";
6
7 src = "${openbabel}/lib/python${python.sourceVersion.major}.${python.sourceVersion.minor}/site-packages";
8
9 nativeBuildInputs = [ openbabel ];
10
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";
17
18 doCheck = false;
19 pythonImportsCheck = [ "openbabel" ];
20
21 meta = with lib; {
22 homepage = "http://openbabel.org/wiki/Main_Page";
23 description = "Python bindings for openbabel";
24 license = licenses.gpl2Plus;
25 maintainers = with maintainers; [ danielbarter ];
26 };
27}