mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-04 19:45:54 +00:00
30 lines
898 B
Nix
30 lines
898 B
Nix
{ buildPythonPackage, isPy3k, fetchPypi, stdenv, exiv2, boost, libcxx }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "py3exiv2";
|
|
version = "0.2.1";
|
|
name = "${pname}-${version}";
|
|
disabled = !(isPy3k);
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "06q7mlqy05c3jr61nmz93fxb6ilizfyggbh5sg0krwjap2sw1fr8";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|