lol

python.pkgs.pycangjie: use buildPythonPackage

mainly so that is has `pythonModule`

+7 -6
+7 -6
pkgs/development/python-modules/pycangjie/default.nix
··· 1 1 { stdenv, fetchurl, bash, autoconf, automake, libtool, pkgconfig, libcangjie 2 - , sqlite, python, cython 2 + , sqlite, buildPythonPackage, cython 3 3 }: 4 4 5 - stdenv.mkDerivation rec { 6 - name = "${python.libPrefix}-pycangjie-${version}"; 5 + let 6 + rev = "361bb413203fd43bab624d98edf6f7d20ce6bfd3"; 7 + in buildPythonPackage rec { 8 + pname = "pycangjie"; 7 9 version = "1.3_rev_${rev}"; 8 - rev = "361bb413203fd43bab624d98edf6f7d20ce6bfd3"; 10 + format = "other"; 9 11 10 12 src = fetchurl { 11 - name = "${name}.tar.gz"; 12 13 url = "https://github.com/Cangjians/pycangjie/archive/${rev}.tar.gz"; 13 14 sha256 = "12yi09nyffmn4va7lzk4irw349qzlbxgsnb89dh15cnw0xmrin05"; 14 15 }; 15 16 16 17 nativeBuildInputs = [ pkgconfig ]; 17 18 buildInputs = [ 18 - autoconf automake libtool libcangjie sqlite python cython 19 + autoconf automake libtool libcangjie sqlite cython 19 20 ]; 20 21 21 22 preConfigure = ''