2021-01-25 08:26:54 +00:00
|
|
|
{ lib, fetchurl, bash, autoconf, automake, libtool, pkg-config, libcangjie
|
2018-01-01 10:48:31 +00:00
|
|
|
, sqlite, buildPythonPackage, cython
|
2014-02-02 13:34:40 +00:00
|
|
|
}:
|
|
|
|
|
2018-01-01 10:48:31 +00:00
|
|
|
let
|
2015-09-05 13:53:41 +01:00
|
|
|
rev = "361bb413203fd43bab624d98edf6f7d20ce6bfd3";
|
2019-08-13 22:52:01 +01:00
|
|
|
in buildPythonPackage {
|
2018-01-01 10:48:31 +00:00
|
|
|
pname = "pycangjie";
|
|
|
|
version = "1.3_rev_${rev}";
|
|
|
|
format = "other";
|
2014-02-02 13:34:40 +00:00
|
|
|
|
|
|
|
src = fetchurl {
|
2015-09-05 13:53:41 +01:00
|
|
|
url = "https://github.com/Cangjians/pycangjie/archive/${rev}.tar.gz";
|
|
|
|
sha256 = "12yi09nyffmn4va7lzk4irw349qzlbxgsnb89dh15cnw0xmrin05";
|
2014-02-02 13:34:40 +00:00
|
|
|
};
|
|
|
|
|
2021-01-19 06:50:56 +00:00
|
|
|
nativeBuildInputs = [ pkg-config libtool autoconf automake cython ];
|
2019-08-19 15:27:19 +01:00
|
|
|
buildInputs = [ libcangjie sqlite ];
|
2014-02-02 13:34:40 +00:00
|
|
|
|
|
|
|
preConfigure = ''
|
|
|
|
find . -name '*.sh' -exec sed -e 's@#!/bin/bash@${bash}/bin/bash@' -i '{}' ';'
|
|
|
|
sed -i 's@/usr@${libcangjie}@' tests/__init__.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
configureScript = "./autogen.sh";
|
|
|
|
|
|
|
|
doCheck = true;
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2014-02-02 13:34:40 +00:00
|
|
|
description = "Python wrapper to libcangjie";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "http://cangjians.github.io/projects/pycangjie/";
|
2014-02-02 13:34:40 +00:00
|
|
|
license = licenses.lgpl3Plus;
|
|
|
|
maintainers = [ maintainers.linquize ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|