komikku: init at 1.15.0

This commit is contained in:
Chuang Zhu 2023-03-17 17:14:15 +08:00 committed by Anderson Torres
parent 7e1d382035
commit b7a3087658
4 changed files with 148 additions and 0 deletions

View file

@ -0,0 +1,94 @@
{ lib
, fetchFromGitLab
, desktop-file-utils
, gettext
, glib
, gobject-introspection
, gtk4
, libadwaita
, libnotify
, webkitgtk_5_0
, meson
, ninja
, pkg-config
, python3
, wrapGAppsHook4
, nix-update-script
}:
python3.pkgs.buildPythonApplication rec {
pname = "komikku";
version = "1.15.0";
format = "other";
src = fetchFromGitLab {
owner = "valos";
repo = "Komikku";
rev = "v${version}";
hash = "sha256-dmi8a9Gf4ixq5oW6ewDGZYRmxY2qmUrD42DfjskRpHk=";
};
nativeBuildInputs = [
meson
ninja
pkg-config
wrapGAppsHook4
gettext
glib # for glib-compile-resources
desktop-file-utils
gobject-introspection
];
buildInputs = [
glib
gtk4
libadwaita
libnotify
webkitgtk_5_0
gobject-introspection
];
propagatedBuildInputs = with python3.pkgs; [
pygobject3
beautifulsoup4
brotli
cloudscraper
dateparser
emoji
keyring
lxml
python-magic
natsort
piexif
pillow
pure-protobuf
rarfile
unidecode
];
# Tests require network
doCheck = false;
# Prevent double wrapping.
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=(
"''${gappsWrapperArgs[@]}"
)
'';
passthru = {
updateScript = nix-update-script {
attrPath = "komikku";
};
};
meta = with lib; {
description = "Manga reader for GNOME";
homepage = "https://valos.gitlab.io/Komikku/";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ chuangzhu ];
};
}

View file

@ -0,0 +1,50 @@
{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, setuptools-scm
, toml
, pytestCheckHook
, pytest-benchmark
, hatch-vcs
, hatchling
}:
buildPythonPackage rec {
pname = "pure-protobuf";
version = "2.2.3";
format = "pyproject";
disabled = pythonOlder "3.7";
# PyPi lacks tests.
src = fetchFromGitHub {
owner = "eigenein";
repo = "protobuf";
rev = version;
hash = "sha256-FsVWlYPav4uusdEPXc5hScLeNJWfbSjGOLuZ7yZXyCw=";
};
SETUPTOOLS_SCM_PRETEND_VERSION = version;
nativeBuildInputs = [
hatch-vcs
hatchling
];
checkInputs = [
pytestCheckHook
pytest-benchmark
];
pythonImportsCheck = [
"pure_protobuf"
];
meta = with lib; {
description = "Python implementation of Protocol Buffers with dataclass-based schemas";
homepage = "https://github.com/eigenein/protobuf";
license = licenses.mit;
maintainers = with maintainers; [ chuangzhu ];
};
}

View file

@ -29645,6 +29645,8 @@ with pkgs;
kerbrute = callPackage ../tools/security/kerbrute { };
komikku = callPackage ../applications/graphics/komikku { };
kvmtool = callPackage ../applications/virtualization/kvmtool { };
exrtools = callPackage ../applications/graphics/exrtools { };

View file

@ -7779,6 +7779,8 @@ self: super: with self; {
purepng = callPackage ../development/python-modules/purepng { };
pure-protobuf = callPackage ../development/python-modules/pure-protobuf { };
pure-python-adb = callPackage ../development/python-modules/pure-python-adb { };
pure-python-adb-homeassistant = callPackage ../development/python-modules/pure-python-adb-homeassistant { };