2017-09-28 08:16:09 +01:00
|
|
|
{ stdenv, fetchFromGitHub, fetchurl, python3Packages }:
|
|
|
|
|
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-03-29 11:34:50 +01:00
|
|
|
pname = "unicode";
|
2018-11-15 16:22:38 +00:00
|
|
|
version = "2.6";
|
2017-09-28 08:16:09 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "garabik";
|
|
|
|
repo = "unicode";
|
|
|
|
rev = "v${version}";
|
2018-11-15 16:22:38 +00:00
|
|
|
sha256 = "17hh4nwl5njsh7lnff583j2axn6rfvfbiqwp72n7vcsgkiszw4kg";
|
2017-09-28 08:16:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
ucdtxt = fetchurl {
|
2020-04-01 02:11:51 +01:00
|
|
|
url = "http://www.unicode.org/Public/11.0.0/ucd/UnicodeData.txt";
|
2018-11-15 16:23:07 +00:00
|
|
|
sha256 = "16b0jzvvzarnlxdvs2izd5ia0ipbd87md143dc6lv6xpdqcs75s9";
|
2017-09-28 08:16:09 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
postFixup = ''
|
|
|
|
substituteInPlace "$out/bin/.unicode-wrapped" \
|
|
|
|
--replace "/usr/share/unicode/UnicodeData.txt" "$ucdtxt"
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "Display unicode character properties";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/garabik/unicode";
|
2017-09-28 08:16:09 +01:00
|
|
|
license = licenses.gpl3;
|
|
|
|
maintainers = [ maintainers.woffs ];
|
2017-10-08 17:53:28 +01:00
|
|
|
platforms = platforms.all;
|
2017-09-28 08:16:09 +01:00
|
|
|
};
|
|
|
|
}
|