nixpkgs/pkgs/development/python-modules/py3exiv2/default.nix
Linus Heckemann 5aa4b19946 treewide: mark some broken packages as broken
Refs:
e6754980264fe927320d5ff2dbd24ca4fac9a160
1e9cc5b9844ef603fe160e9f671178f96200774f
793a2fe1e8bb886ca2096c5904e1193dc3268b6d
c19cf65261639f749012454932a532aa7c681e4b
f6544d618f30fae0bc4798c4387a8c7c9c047a7c
2019-10-08 17:14:26 +02:00

35 lines
1,015 B
Nix

{ buildPythonPackage, isPy3k, fetchPypi, stdenv, exiv2, boost, libcxx, substituteAll, python }:
buildPythonPackage rec {
pname = "py3exiv2";
version = "0.7.0";
disabled = !(isPy3k);
src = fetchPypi {
inherit pname version;
sha256 = "1gcvmglyl8ad2f336w88gwkd5djjsxdx1ind9wnlbqc3jn9i05cg";
};
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 = [
(substituteAll {
src = ./setup.patch;
version = "3${stdenv.lib.versions.minor python.version}";
})
];
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;
broken = true;
};
}