2018-07-21 00:44:44 +00:00
|
|
|
{stdenv, fetchurl, gettext, python3}:
|
2009-04-17 15:08:14 +00:00
|
|
|
|
2010-12-14 10:21:38 +00:00
|
|
|
stdenv.mkDerivation rec {
|
2019-08-15 12:41:18 +00:00
|
|
|
pname = "iso-codes";
|
2019-10-22 04:25:56 +00:00
|
|
|
version = "4.4";
|
2017-03-14 01:29:03 +00:00
|
|
|
|
2009-04-17 15:08:14 +00:00
|
|
|
src = fetchurl {
|
2019-08-30 23:57:29 +00:00
|
|
|
url = "https://salsa.debian.org/iso-codes-team/iso-codes/-/archive/${pname}-${version}/${pname}-${pname}-${version}.tar.bz2";
|
2019-10-22 04:25:56 +00:00
|
|
|
sha256 = "02x0wcz783ammkdrmrh31wsmww481xbkbz70vf766ivbnn5sfxn6";
|
2009-04-17 15:08:14 +00:00
|
|
|
};
|
2019-05-07 00:58:25 +00:00
|
|
|
|
2009-04-17 15:08:14 +00:00
|
|
|
patchPhase = ''
|
|
|
|
for i in `find . -name \*.py`
|
|
|
|
do
|
2017-03-14 01:29:03 +00:00
|
|
|
sed -i -e "s|#!/usr/bin/env python|#!${python3}/bin/python|" $i
|
2009-04-17 15:08:14 +00:00
|
|
|
done
|
|
|
|
'';
|
2019-05-07 00:58:25 +00:00
|
|
|
|
|
|
|
nativeBuildInputs = [ gettext python3 ];
|
2010-12-14 10:21:38 +00:00
|
|
|
|
2017-03-14 01:29:03 +00:00
|
|
|
meta = with stdenv.lib; {
|
2018-09-02 18:13:36 +00:00
|
|
|
homepage = https://salsa.debian.org/iso-codes-team/iso-codes;
|
2010-12-14 10:21:38 +00:00
|
|
|
description = "Various ISO codes packaged as XML files";
|
2018-09-02 18:13:36 +00:00
|
|
|
license = licenses.lgpl21;
|
2017-03-14 01:29:03 +00:00
|
|
|
platforms = platforms.all;
|
2010-12-14 10:21:38 +00:00
|
|
|
};
|
2009-04-17 15:08:14 +00:00
|
|
|
}
|