linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / pycangjie / default.nix
blob1f7ccde2576b91e3d3cf819d074a17329a10626f
1 { lib, fetchurl, bash, autoconf, automake, libtool, pkg-config, libcangjie
2 , sqlite, buildPythonPackage, cython
3 }:
5 let
6   rev = "361bb413203fd43bab624d98edf6f7d20ce6bfd3";
7 in buildPythonPackage {
8   pname = "pycangjie";
9   version = "1.3_rev_${rev}";
10   format = "other";
12   src = fetchurl {
13     url = "https://github.com/Cangjians/pycangjie/archive/${rev}.tar.gz";
14     sha256 = "12yi09nyffmn4va7lzk4irw349qzlbxgsnb89dh15cnw0xmrin05";
15   };
17   nativeBuildInputs = [ pkg-config libtool autoconf automake cython ];
18   buildInputs = [ libcangjie sqlite ];
20   preConfigure = ''
21     find . -name '*.sh' -exec sed -e 's@#!/bin/bash@${bash}/bin/bash@' -i '{}' ';'
22     sed -i 's@/usr@${libcangjie}@' tests/__init__.py
23   '';
25   configureScript = "./autogen.sh";
27   doCheck = true;
29   meta = with lib; {
30     description = "Python wrapper to libcangjie";
31     homepage = "http://cangjians.github.io/projects/pycangjie/";
32     license = licenses.lgpl3Plus;
33     maintainers = [ maintainers.linquize ];
34     platforms = platforms.all;
35   };