1{stdenv, fetchurl, gettext, python3, xz}:
2
3stdenv.mkDerivation rec {
4 name = "iso-codes-3.74";
5
6 src = fetchurl {
7 url = "http://pkg-isocodes.alioth.debian.org/downloads/${name}.tar.xz";
8 sha256 = "1vkaxkcx8h8lbg3z3jjfjs1x1rz1l01j6ll46ysza2gym37g7x11";
9 };
10 patchPhase = ''
11 for i in `find . -name \*.py`
12 do
13 sed -i -e "s|#!/usr/bin/env python|#!${python3}/bin/python|" $i
14 done
15 '';
16 buildInputs = [ gettext python3 ];
17
18 meta = with stdenv.lib; {
19 homepage = http://pkg-isocodes.alioth.debian.org/;
20 description = "Various ISO codes packaged as XML files";
21 maintainers = [ ];
22 platforms = platforms.all;
23 };
24}