mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 22:57:00 +00:00
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
30 lines
908 B
Nix
30 lines
908 B
Nix
{ stdenv, buildPythonPackage, fetchurl, python, exiv2, scons, boost }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyexiv2";
|
|
version = "0.3.2";
|
|
format = "other";
|
|
|
|
src = fetchurl {
|
|
url = "http://launchpad.net/pyexiv2/0.3.x/0.3.2/+download/${pname}-${version}.tar.bz2";
|
|
sha256 = "09r1ga6kj5cnmrldpkqzvdhh7xi7aad9g4fbcr1gawgsd9y13g0a";
|
|
};
|
|
|
|
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 ];
|
|
|
|
meta = {
|
|
platforms = stdenv.lib.platforms.linux;
|
|
# Likely needs an older boost which does not have `boost_pythonXY` but `boost_python`.
|
|
broken = true; # 2018-06-23
|
|
};
|
|
}
|