1{ lib 2, fetchFromGitHub 3, bash 4, autoconf 5, automake 6, libtool 7, pkg-config 8, libcangjie 9, sqlite 10, buildPythonPackage 11, cython 12}: 13 14buildPythonPackage { 15 pname = "pycangjie"; 16 version = "unstable-2015-05-03"; 17 format = "other"; 18 19 src = fetchFromGitHub { 20 owner = "Cangjians"; 21 repo = "pycangjie"; 22 rev = "361bb413203fd43bab624d98edf6f7d20ce6bfd3"; 23 hash = "sha256-sS0Demzm89WtEIN4Efz0OTsUQ/c3gIX+/koekQGOca4="; 24 }; 25 26 nativeBuildInputs = [ pkg-config libtool autoconf automake cython ]; 27 buildInputs = [ libcangjie sqlite ]; 28 29 preConfigure = '' 30 find . -name '*.sh' -exec sed -e 's@#!/bin/bash@${bash}/bin/bash@' -i '{}' ';' 31 sed -i 's@/usr@${libcangjie}@' tests/__init__.py 32 ''; 33 34 configureScript = "./autogen.sh"; 35 36 doCheck = true; 37 38 meta = with lib; { 39 description = "Python wrapper to libcangjie"; 40 homepage = "http://cangjians.github.io/projects/pycangjie/"; 41 license = licenses.lgpl3Plus; 42 maintainers = [ maintainers.linquize ]; 43 platforms = platforms.all; 44 }; 45}