diff options
Diffstat (limited to 'pkgs/by-name/py/pyzy/package.nix')
-rw-r--r-- | pkgs/by-name/py/pyzy/package.nix | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/pkgs/by-name/py/pyzy/package.nix b/pkgs/by-name/py/pyzy/package.nix new file mode 100644 index 0000000000000..5fdcae56c47b5 --- /dev/null +++ b/pkgs/by-name/py/pyzy/package.nix @@ -0,0 +1,55 @@ +{ + lib, + stdenv, + fetchFromGitHub, + autoreconfHook, + pkg-config, + python3, + glib, + libuuid, + sqlite, + nix-update-script, +}: + +stdenv.mkDerivation { + pname = "pyzy"; + version = "1.1-unstable-2023-02-28"; + + src = fetchFromGitHub { + owner = "openSUSE"; + repo = "pyzy"; + rev = "ec719d053bd491ec64fe68fe0d1699ca6039ad80"; + hash = "sha256-wU7EgP/CPNhBx9N7mOu0WdnoLazzpQtbRxmBKrTUbKM="; + }; + + nativeBuildInputs = [ + autoreconfHook + pkg-config + python3 + ]; + + buildInputs = [ + glib + libuuid + sqlite + ]; + + postPatch = '' + patchShebangs ./data/db/android/create_db.py + ''; + + passthru.updateScript = nix-update-script { + extraArgs = [ + "--version" + "branch" + ]; + }; + + meta = with lib; { + description = "The Chinese PinYin and Bopomofo conversion library"; + homepage = "https://github.com/openSUSE/pyzy"; + license = licenses.lgpl21; + maintainers = with maintainers; [ azuwis ]; + platforms = platforms.linux; + }; +} |