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