2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
openbabel,
|
|
|
|
python,
|
|
|
|
buildPythonPackage,
|
|
|
|
}:
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2024-02-29 20:09:43 +00:00
|
|
|
inherit (openbabel) pname version;
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
src = "${openbabel}/lib/python${python.sourceVersion.major}.${python.sourceVersion.minor}/site-packages";
|
|
|
|
|
|
|
|
nativeBuildInputs = [ openbabel ];
|
|
|
|
|
|
|
|
# these env variables are used by the bindings to find libraries
|
|
|
|
# they need to be included explicitly in your nix-shell for
|
|
|
|
# some functionality to work (inparticular, pybel).
|
|
|
|
# see https://openbabel.org/docs/dev/Installation/install.html
|
|
|
|
BABEL_LIBDIR = "${openbabel}/lib/openbabel/3.1.0";
|
2021-12-06 16:07:01 +00:00
|
|
|
LD_LIBRARY_PATH = "${openbabel}/lib";
|
2021-02-05 17:12:51 +00:00
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "openbabel" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
homepage = "http://openbabel.org/wiki/Main_Page";
|
|
|
|
description = "Python bindings for openbabel";
|
|
|
|
license = licenses.gpl2Plus;
|
|
|
|
maintainers = with maintainers; [ danielbarter ];
|
|
|
|
};
|
|
|
|
}
|