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