Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 openbabel, 4 python, 5 buildPythonPackage, 6}: 7 8buildPythonPackage { 9 format = "setuptools"; 10 inherit (openbabel) pname version; 11 12 src = "${openbabel}/${python.sitePackages}"; 13 14 buildInputs = [ openbabel ]; 15 16 # these env variables are used by the bindings to find libraries 17 # they need to be included explicitly in your nix-shell for 18 # some functionality to work (inparticular, pybel). 19 # see https://openbabel.org/docs/dev/Installation/install.html 20 BABEL_LIBDIR = "${openbabel}/lib/openbabel/3.1.0"; 21 LD_LIBRARY_PATH = "${openbabel}/lib"; 22 23 doCheck = false; 24 pythonImportsCheck = [ "openbabel" ]; 25 26 meta = with lib; { 27 homepage = "http://openbabel.org/wiki/Main_Page"; 28 description = "Python bindings for openbabel"; 29 license = licenses.gpl2Plus; 30 maintainers = with maintainers; [ danielbarter ]; 31 }; 32}