Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / openbabel-bindings / default.nix
blobfad677987bf4a3f2ba4acf1def8c6f44fd7350e0
1 { lib, openbabel, python, buildPythonPackage }:
3 buildPythonPackage rec {
4   pname = "openbabel";
5   version = "3.1.1";
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";
18   doCheck = false;
19   pythonImportsCheck = [ "openbabel" ];
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   };