2021-01-24 00:29:22 +00:00
|
|
|
{ lib, buildPythonPackage, isPy3k, fetchPypi, stdenv, exiv2, boost, libcxx, substituteAll, python }:
|
2017-10-30 18:34:41 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py3exiv2";
|
2020-10-08 06:37:00 +01:00
|
|
|
version = "0.8.0";
|
2017-10-30 18:34:41 +00:00
|
|
|
disabled = !(isPy3k);
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-10-08 06:37:00 +01:00
|
|
|
sha256 = "1v419f1kkqw8hqyc3yhzslnbzk52j8j3wfknfkjg308n5mf5bn09";
|
2017-10-30 18:34:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ exiv2 boost ];
|
|
|
|
|
|
|
|
# work around python distutils compiling C++ with $CC (see issue #26709)
|
2021-01-24 00:29:22 +00:00
|
|
|
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
|
2017-10-30 18:34:41 +00:00
|
|
|
|
2021-01-24 00:29:22 +00:00
|
|
|
meta = with lib; {
|
2017-10-30 18:34:41 +00:00
|
|
|
homepage = "https://launchpad.net/py3exiv2";
|
|
|
|
description = "A Python3 binding to the library exiv2";
|
2021-01-24 00:29:22 +00:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = with maintainers; [ vinymeuh ];
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
2017-10-30 18:34:41 +00:00
|
|
|
};
|
|
|
|
}
|