Merge pull request #91097 from woffs/unicode-13

unicode: 2.6 -> 2.7
This commit is contained in:
Daniël de Kok 2020-06-19 18:05:43 +02:00 committed by GitHub
commit eca6581a34
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,26 +1,32 @@
{ stdenv, fetchFromGitHub, fetchurl, python3Packages }:
{ stdenv, fetchFromGitHub, fetchurl, python3Packages, installShellFiles }:
python3Packages.buildPythonApplication rec {
pname = "unicode";
version = "2.6";
version = "2.7";
src = fetchFromGitHub {
owner = "garabik";
repo = "unicode";
rev = "v${version}";
sha256 = "17hh4nwl5njsh7lnff583j2axn6rfvfbiqwp72n7vcsgkiszw4kg";
sha256 = "15d9yvarxsiy0whx1mxzsjnnkrjdm3ga4qv2yy398mk0jh763q9v";
};
ucdtxt = fetchurl {
url = "http://www.unicode.org/Public/11.0.0/ucd/UnicodeData.txt";
sha256 = "16b0jzvvzarnlxdvs2izd5ia0ipbd87md143dc6lv6xpdqcs75s9";
url = "https://www.unicode.org/Public/13.0.0/ucd/UnicodeData.txt";
sha256 = "1fz8fcd23lxyl97ay8h42zvkcgcg8l81b2dm05nklkddr2zzpgxx";
};
nativeBuildInputs = [ installShellFiles ];
postFixup = ''
substituteInPlace "$out/bin/.unicode-wrapped" \
--replace "/usr/share/unicode/UnicodeData.txt" "$ucdtxt"
'';
postInstall = ''
installManPage paracode.1 unicode.1
'';
meta = with stdenv.lib; {
description = "Display unicode character properties";
homepage = "https://github.com/garabik/unicode";