python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / openbabel / 2.nix
blob3e989561470c68cd0340af40b170210aa1382d9a
1 {stdenv, lib, fetchFromGitHub, fetchpatch, cmake, zlib, libxml2, eigen, python3, cairo, pcre, pkg-config }:
3 stdenv.mkDerivation rec {
4   pname = "openbabel";
5   version = "2.4.1";
7   src = fetchFromGitHub {
8     owner = "openbabel";
9     repo = "openbabel";
10     rev = "openbabel-${lib.replaceStrings ["."] ["-"] version}";
11     sha256 = "sha256-+pXsWMzex7rB1mm6dnTHzAcyw9jImgx1OZuLeCvbeJ0=";
12   };
14   patches = [
15     # ARM / AArch64 fixes.
16     (fetchpatch {
17       url = "https://github.com/openbabel/openbabel/commit/ee11c98a655296550710db1207b294f00e168216.patch";
18       sha256 = "0wjqjrkr4pfirzzicdvlyr591vppydk572ix28jd2sagnfnf566g";
19     })
20   ];
22   buildInputs = [ zlib libxml2 eigen python3 cairo pcre ];
24   nativeBuildInputs = [ cmake pkg-config ];
26   meta = with lib; {
27     description = "A toolbox designed to speak the many languages of chemical data";
28     homepage = "http://openbabel.org";
29     platforms = platforms.all;
30     maintainers = with maintainers; [ danielbarter ];
31     license = licenses.gpl2Plus;
32   };