1{ lib 2, stdenv 3, boost 4, buildPythonPackage 5, exiv2 6, fetchPypi 7, libcxx 8, pythonOlder 9}: 10 11buildPythonPackage rec { 12 pname = "py3exiv2"; 13 version = "0.11.0"; 14 format = "setuptools"; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchPypi { 19 inherit pname version; 20 hash = "sha256-ZgDaa4lxmdTaZhkblgRfPMxfVwENp2s6xdKSuD/MqEQ="; 21 }; 22 23 buildInputs = [ 24 boost 25 exiv2 26 ]; 27 28 # Work around Python distutils compiling C++ with $CC (see issue #26709) 29 NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin [ 30 "-I${lib.getDev libcxx}/include/c++/v1" 31 ]; 32 33 pythonImportsCheck = [ 34 "pyexiv2" 35 ]; 36 37 # Tests are not shipped 38 doCheck = false; 39 40 meta = with lib; { 41 broken = stdenv.isDarwin; 42 description = "Python binding to the library exiv2"; 43 homepage = "https://launchpad.net/py3exiv2"; 44 license = licenses.gpl3Plus; 45 maintainers = with maintainers; [ vinymeuh ]; 46 platforms = with platforms; linux ++ darwin; 47 }; 48}