1{ lib, buildPythonPackage, isPy3k, fetchPypi, stdenv, exiv2, boost, libcxx }: 2 3buildPythonPackage rec { 4 pname = "py3exiv2"; 5 version = "0.9.3"; 6 disabled = !(isPy3k); 7 8 src = fetchPypi { 9 inherit pname version; 10 sha256 = "838836e58ca22557d83d1f0ef918bcce899b4c2666340b924b940dcdebf1d18c"; 11 }; 12 13 buildInputs = [ exiv2 boost ]; 14 15 # work around python distutils compiling C++ with $CC (see issue #26709) 16 NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1"; 17 18 meta = with lib; { 19 homepage = "https://launchpad.net/py3exiv2"; 20 description = "A Python3 binding to the library exiv2"; 21 license = licenses.gpl3; 22 maintainers = with maintainers; [ vinymeuh ]; 23 platforms = with platforms; linux ++ darwin; 24 }; 25}