2018-06-23 15:27:58 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchurl, python, exiv2, scons, boost }:
|
2011-08-22 22:26:11 +02:00
|
|
|
|
2018-06-23 15:27:58 +02:00
|
|
|
buildPythonPackage rec {
|
2017-05-27 11:25:35 +02:00
|
|
|
pname = "pyexiv2";
|
|
|
|
version = "0.3.2";
|
2018-06-23 15:27:58 +02:00
|
|
|
format = "other";
|
|
|
|
|
2011-08-22 22:26:11 +02:00
|
|
|
src = fetchurl {
|
2018-11-24 23:47:52 +01:00
|
|
|
url = "https://launchpad.net/pyexiv2/0.3.x/0.3.2/+download/${pname}-${version}.tar.bz2";
|
2016-05-14 16:12:21 +02:00
|
|
|
sha256 = "09r1ga6kj5cnmrldpkqzvdhh7xi7aad9g4fbcr1gawgsd9y13g0a";
|
2011-08-22 22:26:11 +02:00
|
|
|
};
|
|
|
|
|
2018-11-12 03:52:07 +01:00
|
|
|
preBuild = ''
|
2011-08-22 22:26:11 +02:00
|
|
|
sed -i -e "s@env = Environment()@env = Environment( ENV = os.environ )@" src/SConscript
|
|
|
|
'';
|
2018-11-12 03:52:07 +01:00
|
|
|
|
|
|
|
preInstall = ''
|
2011-08-22 22:26:11 +02:00
|
|
|
sed -i -e "s@ python_lib_path = get_python_lib(plat_specific=True)@ python_lib_path = \'/lib/python2.7/site-packages\'@" src/SConscript
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildInputs = [ python exiv2 scons boost ];
|
2016-08-02 18:06:29 +02:00
|
|
|
|
|
|
|
meta = {
|
|
|
|
platforms = stdenv.lib.platforms.linux;
|
2018-06-23 15:27:58 +02:00
|
|
|
# Likely needs an older boost which does not have `boost_pythonXY` but `boost_python`.
|
|
|
|
broken = true; # 2018-06-23
|
2016-08-02 18:06:29 +02:00
|
|
|
};
|
2011-08-22 22:26:11 +02:00
|
|
|
}
|