21 stdenv.mkDerivation rec {
23 version = "unstable-06-12-23";
25 src = fetchFromGitHub {
28 rev = "32cf131444c1555c749b356dab44fb9fe275271f";
29 hash = "sha256-V0wrZVrojCZ9Knc5H6cPzPoYWVosRZ6Sn4PX+UFEfHY=";
33 sed '1i#include <ctime>' -i include/openbabel/obutil.h # gcc12
59 "-DPYTHON_BINDINGS=ON"
60 "-DPYTHON_INSTDIR=$out/${python.sitePackages}"
64 # Setuptools only accepts PEP 440 version strings. The "unstable" identifier
65 # can not be used. Instead we pretend to be the 3.2 beta release.
67 cat << EOF > $out/${python.sitePackages}/setup.py
68 from setuptools import setup
73 packages = ['openbabel'],
74 package_data = {'openbabel' : ['_openbabel.so']}
80 description = "Toolbox designed to speak the many languages of chemical data";
81 homepage = "http://openbabel.org";
82 platforms = platforms.all;
83 license = licenses.gpl2Plus;
84 maintainers = with maintainers; [ danielbarter ];