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