Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion pkgs/development/python-modules/py3exiv2/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,12 @@ buildPythonPackage rec {
hash = "sha256-crI+X3YMRzPPmpGNsI2U+9bZgwcR0qTowJuPNFY/Ooo=";
};

# py3exiv2 only checks in `/usr/local/lib` for Boost, which is obviously wrong in nixpkgs.
postPatch = lib.optionalString stdenv.hostPlatform.isDarwin ''
substituteInPlace setup.py \
--replace-fail /usr/local/lib/ ${lib.escapeShellArg (lib.getLib boost)}/lib/
'';

buildInputs = [
boost
exiv2
Expand All @@ -34,7 +40,6 @@ buildPythonPackage rec {
doCheck = false;

meta = with lib; {
broken = stdenv.hostPlatform.isDarwin;
description = "Python binding to the library exiv2";
homepage = "https://launchpad.net/py3exiv2";
license = licenses.gpl3Plus;
Expand Down