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