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