{ lib, stdenv, fetchurl, gettext, python3, testers, }: stdenv.mkDerivation (finalAttrs: { pname = "iso-codes"; version = "4.17.0"; src = fetchurl { url = with finalAttrs; "https://salsa.debian.org/iso-codes-team/iso-codes/-/archive/v${version}/${pname}-v${version}.tar.gz"; hash = "sha256-3VyhPbd+xt0cwl9cAYQpCocOwf7SRdjjmgT/NPWQdsM="; }; nativeBuildInputs = [ gettext python3 ]; enableParallelBuilding = true; passthru.tests = { pkg-config = testers.hasPkgConfigModules { package = finalAttrs.finalPackage; }; }; meta = with lib; { homepage = "https://salsa.debian.org/iso-codes-team/iso-codes"; description = "Various ISO codes packaged as XML files"; license = licenses.lgpl21; platforms = platforms.all; pkgConfigModules = [ "iso-codes" ]; }; })