3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/py3exiv2/default.nix

29 lines
878 B
Nix
Raw Normal View History

2017-10-30 18:34:41 +00:00
{ buildPythonPackage, isPy3k, fetchPypi, stdenv, exiv2, boost, libcxx }:
buildPythonPackage rec {
pname = "py3exiv2";
2018-07-22 11:16:33 +01:00
version = "0.4.0";
2017-10-30 18:34:41 +00:00
disabled = !(isPy3k);
src = fetchPypi {
inherit pname version;
2018-07-22 11:16:33 +01:00
sha256 = "4042492db49efbdfc53e0afa89509695826b3fb74fb52444ed04f64c229a65f5";
2017-10-30 18:34:41 +00:00
};
buildInputs = [ exiv2 boost ];
# work around python distutils compiling C++ with $CC (see issue #26709)
NIX_CFLAGS_COMPILE = stdenv.lib.optionalString stdenv.isDarwin "-I${libcxx}/include/c++/v1";
# fix broken libboost_python3 detection
patches = [ ./setup.patch ];
meta = {
homepage = "https://launchpad.net/py3exiv2";
description = "A Python3 binding to the library exiv2";
license = with stdenv.lib.licenses; [ gpl3 ];
maintainers = with stdenv.lib.maintainers; [ vinymeuh ];
platforms = with stdenv.lib.platforms; linux ++ darwin;
};
}