2022-05-07 16:10:26 +02:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
2022-05-08 15:46:31 +02:00
|
|
|
, boost
|
2022-05-07 16:10:26 +02:00
|
|
|
, buildPythonPackage
|
|
|
|
, exiv2
|
2022-05-08 15:46:31 +02:00
|
|
|
, fetchPypi
|
2022-05-07 16:10:26 +02:00
|
|
|
, libcxx
|
2022-05-08 15:46:31 +02:00
|
|
|
, pythonOlder
|
2022-05-07 16:10:26 +02:00
|
|
|
}:
|
2017-10-30 19:34:41 +01:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py3exiv2";
|
2022-05-07 03:14:38 +00:00
|
|
|
version = "0.11.0";
|
2022-05-07 16:10:26 +02:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2017-10-30 19:34:41 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2022-05-07 16:10:26 +02:00
|
|
|
hash = "sha256-ZgDaa4lxmdTaZhkblgRfPMxfVwENp2s6xdKSuD/MqEQ=";
|
2017-10-30 19:34:41 +01:00
|
|
|
};
|
|
|
|
|
2022-05-07 16:10:26 +02:00
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
exiv2
|
|
|
|
];
|
2017-10-30 19:34:41 +01:00
|
|
|
|
2022-05-08 15:46:31 +02:00
|
|
|
# Work around Python distutils compiling C++ with $CC (see issue #26709)
|
2022-05-07 16:13:21 +02:00
|
|
|
NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin [
|
2022-05-07 16:10:26 +02:00
|
|
|
"-I${lib.getDev libcxx}/include/c++/v1"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
2022-05-08 15:46:31 +02:00
|
|
|
"pyexiv2"
|
2022-05-07 16:10:26 +02:00
|
|
|
];
|
2017-10-30 19:34:41 +01:00
|
|
|
|
2022-05-08 15:46:31 +02:00
|
|
|
# Tests are not shipped
|
|
|
|
doCheck = false;
|
|
|
|
|
2021-01-24 01:29:22 +01:00
|
|
|
meta = with lib; {
|
2022-05-29 11:10:09 +02:00
|
|
|
broken = stdenv.isDarwin;
|
2022-05-08 15:46:31 +02:00
|
|
|
description = "Python binding to the library exiv2";
|
2022-05-07 16:10:26 +02:00
|
|
|
homepage = "https://launchpad.net/py3exiv2";
|
|
|
|
license = licenses.gpl3Plus;
|
2021-01-24 01:29:22 +01:00
|
|
|
maintainers = with maintainers; [ vinymeuh ];
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
2017-10-30 19:34:41 +01:00
|
|
|
};
|
|
|
|
}
|