2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, boost
|
|
|
|
, buildPythonPackage
|
|
|
|
, exiv2
|
|
|
|
, fetchPypi
|
|
|
|
, libcxx
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py3exiv2";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "0.12.0";
|
2022-05-18 14:49:53 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-crI+X3YMRzPPmpGNsI2U+9bZgwcR0qTowJuPNFY/Ooo=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
buildInputs = [
|
|
|
|
boost
|
|
|
|
exiv2
|
|
|
|
];
|
|
|
|
|
|
|
|
# Work around Python distutils compiling C++ with $CC (see issue #26709)
|
2023-03-04 12:14:45 +00:00
|
|
|
env.NIX_CFLAGS_COMPILE = lib.optionalString stdenv.isDarwin "-I${lib.getDev libcxx}/include/c++/v1";
|
2022-05-18 14:49:53 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"pyexiv2"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
# Tests are not shipped
|
|
|
|
doCheck = false;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-02-05 17:12:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = stdenv.isDarwin;
|
2022-05-18 14:49:53 +00:00
|
|
|
description = "Python binding to the library exiv2";
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://launchpad.net/py3exiv2";
|
2022-05-18 14:49:53 +00:00
|
|
|
license = licenses.gpl3Plus;
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with maintainers; [ vinymeuh ];
|
|
|
|
platforms = with platforms; linux ++ darwin;
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|