2011-08-22 21:26:11 +01:00
|
|
|
{ stdenv, fetchurl, python, exiv2, scons, boost }:
|
|
|
|
|
2016-05-14 15:12:21 +01:00
|
|
|
let version = "0.3.2"; in
|
2011-08-22 21:26:11 +01:00
|
|
|
|
2016-05-14 15:12:21 +01:00
|
|
|
stdenv.mkDerivation rec {
|
2011-08-22 21:26:11 +01:00
|
|
|
name = "pyexiv2-${version}";
|
|
|
|
|
|
|
|
src = fetchurl {
|
2016-05-14 15:12:21 +01:00
|
|
|
url = "http://launchpad.net/pyexiv2/0.3.x/0.3.2/+download/${name}.tar.bz2";
|
|
|
|
sha256 = "09r1ga6kj5cnmrldpkqzvdhh7xi7aad9g4fbcr1gawgsd9y13g0a";
|
2011-08-22 21:26:11 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
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 ];
|
2016-08-02 17:06:29 +01:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
|
|
|
};
|
2011-08-22 21:26:11 +01:00
|
|
|
}
|