3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/pyexiv2/default.nix
David Guibert c716ac66e0 add jbrout, a photo manager using IPTC keywords/EXIF
svn path=/nixpkgs/trunk/; revision=28759
2011-08-22 20:26:11 +00:00

24 lines
691 B
Nix

{ stdenv, fetchurl, python, exiv2, scons, boost }:
let version = "0.3.0"; in
stdenv.mkDerivation {
name = "pyexiv2-${version}";
src = fetchurl {
url = "http://launchpad.net/pyexiv2/0.3.x/0.3/+download/pyexiv2-0.3.0.tar.bz2";
sha256 = "1y7r2z0ja166cx8fmykq7gaif02drknqqbxaf18fhv9nmgz4jrg9";
};
buildPhase = ''
sed -i -e "s@env = Environment()@env = Environment( ENV = os.environ )@" src/SConscript
scons
'';
installPhase = ''
sed -i -e "s@ python_lib_path = get_python_lib(plat_specific=True)@ python_lib_path = \'/lib/python2.7/site-packages\'@" src/SConscript
scons install DESTDIR=$out
'';
buildInputs = [ python exiv2 scons boost ];
}