Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at litex 948 B view raw
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 env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1"; 30 31 pythonImportsCheck = [ 32 "pyexiv2" 33 ]; 34 35 # Tests are not shipped 36 doCheck = false; 37 38 meta = with lib; { 39 broken = stdenv.isDarwin; 40 description = "Python binding to the library exiv2"; 41 homepage = "https://launchpad.net/py3exiv2"; 42 license = licenses.gpl3Plus; 43 maintainers = with maintainers; [ vinymeuh ]; 44 platforms = with platforms; linux ++ darwin; 45 }; 46}