1{ buildPythonPackage, isPy3k, fetchPypi, stdenv, exiv2, boost, libcxx, substituteAll, python }:
2
3buildPythonPackage rec {
4 pname = "py3exiv2";
5 version = "0.7.0";
6 disabled = !(isPy3k);
7
8 src = fetchPypi {
9 inherit pname version;
10 sha256 = "1gcvmglyl8ad2f336w88gwkd5djjsxdx1ind9wnlbqc3jn9i05cg";
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 = [
20 (substituteAll {
21 src = ./setup.patch;
22 version = "3${stdenv.lib.versions.minor python.version}";
23 })
24 ];
25
26 meta = {
27 homepage = "https://launchpad.net/py3exiv2";
28 description = "A Python3 binding to the library exiv2";
29 license = with stdenv.lib.licenses; [ gpl3 ];
30 maintainers = with stdenv.lib.maintainers; [ vinymeuh ];
31 platforms = with stdenv.lib.platforms; linux ++ darwin;
32 broken = true;
33 };
34}