3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/py3exiv2/default.nix
Zoran Bošnjak 4c1d900de6 python3Packages.py3exiv2: 0.7.0 -> 0.8.0
Existing version is marked 'broken'.
Resolves #99623.
2020-10-07 22:56:31 -07:00

26 lines
815 B
Nix

{ buildPythonPackage, isPy3k, fetchPypi, stdenv, exiv2, boost, libcxx, substituteAll, python }:
buildPythonPackage rec {
pname = "py3exiv2";
version = "0.8.0";
disabled = !(isPy3k);
src = fetchPypi {
inherit pname version;
sha256 = "1v419f1kkqw8hqyc3yhzslnbzk52j8j3wfknfkjg308n5mf5bn09";
};
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";
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;
};
}