stage-2-init: fix false positives for RO Nix store mounts (#375257)
[NixPkgs.git] / pkgs / development / python-modules / openbabel-bindings / default.nix
blob4ab6b77465c1f6181269487e53b66b8b14ca114d
2   lib,
3   openbabel,
4   python,
5   buildPythonPackage,
6 }:
8 buildPythonPackage rec {
9   inherit (openbabel) pname version;
11   src = "${openbabel}/${python.sitePackages}";
13   buildInputs = [ openbabel ];
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";
22   doCheck = false;
23   pythonImportsCheck = [ "openbabel" ];
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   };