slobdict: 1.0.0 -> 1.2.0 (#500953)

This commit is contained in:
Paul Haerle
2026-03-25 07:56:58 +00:00
committed by GitHub
3 changed files with 70 additions and 2 deletions
+24 -2
View File
@@ -1,5 +1,6 @@
{
lib,
stdenv,
blueprint-compiler,
meson,
ninja,
@@ -17,7 +18,7 @@
python3Packages.buildPythonApplication (finalAttrs: {
pname = "slobdict";
version = "1.0.0";
version = "1.2.0";
pyproject = false; # built with meson
@@ -25,11 +26,12 @@ python3Packages.buildPythonApplication (finalAttrs: {
owner = "MuntashirAkon";
repo = "SlobDict";
tag = finalAttrs.version;
hash = "sha256-V6EmEpxUMZUN9lHSNs4nZBZI2QNxUUWWODukm01lYxY=";
hash = "sha256-4u0VqaPDpyflWkN119IOVqKxpsskou3ou1dqpuRSaHI=";
};
nativeBuildInputs = [
blueprint-compiler
glib
gobject-introspection
meson
ninja
@@ -62,13 +64,28 @@ python3Packages.buildPythonApplication (finalAttrs: {
pymorphy3
# python-romkan-ng not packaged
xxhash
# Deps for cli mode
pygments
rich
premailer
cssutils
markdownify
];
# Prevent double wrapping, let the Python wrapper use the args in preFixup.
dontWrapGApps = true;
postBuild = ''
glib-compile-schemas --strict ../gnome-extension/slobdict@muntashir.dev/schemas
'';
postInstall = ''
chmod +x $out/bin/slobdict
mkdir -p $out/share/gnome-shell/extensions/slobdict@muntashir.dev
cp -r ../gnome-extension/slobdict@muntashir.dev/schemas $out/share/gnome-shell/extensions/slobdict@muntashir.dev
cp ../gnome-extension/slobdict@muntashir.dev/{extension.js,metadata.json} $out/share/gnome-shell/extensions/slobdict@muntashir.dev
'';
preFixup = ''
@@ -77,6 +94,11 @@ python3Packages.buildPythonApplication (finalAttrs: {
strictDeps = true;
passthru = {
extensionPortalSlug = "slobdict";
extensionUuid = "slobdict@muntashir.dev";
};
meta = {
homepage = "https://github.com/MuntashirAkon/SlobDict";
description = "Modern, lightweight GTK 4 dictionary app";
@@ -0,0 +1,44 @@
{
buildPythonPackage,
fetchFromGitHub,
setuptools,
lxml,
cssselect,
cssutils,
requests,
cachetools,
lib,
}:
buildPythonPackage {
pname = "premailer";
version = "3.10.0";
pyproject = true;
src = fetchFromGitHub {
owner = "peterbe";
repo = "premailer";
rev = "f4ded0b9701c4985e7ff5c5beda83324c264ea62";
hash = "sha256-8ALdpR3aIDg0wP+JYCPY1f7mEJgdJm8xlLlgGpa0Sa4=";
};
build-system = [ setuptools ];
dependencies = [
lxml
cssselect
cssutils
requests
cachetools
];
pythonImportsCheck = [ "premailer" ];
meta = {
changelog = "https://github.com/peterbe/premailer/blob/master/CHANGES.rst";
description = "Turns CSS blocks into style attributes";
homepage = "https://github.com/peterbe/premailer";
license = lib.licenses.bsd3;
maintainers = [ lib.maintainers.linsui ];
};
}
+2
View File
@@ -12787,6 +12787,8 @@ self: super: with self; {
preggy = callPackage ../development/python-modules/preggy { };
premailer = callPackage ../development/python-modules/premailer { };
preprocess-cancellation = callPackage ../development/python-modules/preprocess-cancellation { };
presenterm-export = callPackage ../development/python-modules/presenterm-export { };