python3Packages.orjson: Disable failing tests on 32 bit
[NixPkgs.git] / pkgs / development / libraries / avro-c++ / default.nix
blob8def8041ced98e1ff87fe7faade5492f50f3c99e
1 { lib, stdenv, fetchurl, cmake, boost, python3 }:
3 stdenv.mkDerivation rec {
4   pname = "avro-c++";
5   version = "1.11.0";
7   src = fetchurl {
8     url = "mirror://apache/avro/avro-${version}/cpp/avro-cpp-${version}.tar.gz";
9     sha256 = "sha256-73DKihz+7XAX3LLA7VkTdN6rFhuGvmyksxK8JMranFY=";
10   };
12   nativeBuildInputs = [ cmake python3 ];
13   buildInputs = [ boost ];
15   preConfigure = ''
16     substituteInPlace test/SchemaTests.cc --replace "BOOST_CHECKPOINT" "BOOST_TEST_CHECKPOINT"
17     substituteInPlace test/buffertest.cc --replace "BOOST_MESSAGE" "BOOST_TEST_MESSAGE"
18   '';
20   meta = {
21     description = "A C++ library which implements parts of the Avro Specification";
22     homepage = "https://avro.apache.org/";
23     license = lib.licenses.asl20;
24     maintainers = with lib.maintainers; [ rasendubi ];
25     platforms = lib.platforms.all;
26   };