depot/third_party/nixpkgs/pkgs/by-name/py/pyzy/package.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

55 lines
988 B
Nix

{
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;
};
}