nixpkgs/pkgs/by-name/co/conjure/package.nix
aleksana 571c71e6f7 treewide: migrate packages to pkgs/by-name, take 1
We are migrating packages that meet below requirements:

1. using `callPackage`
2. called path is a directory
3. overriding set is empty (`{ }`)
4. not containing path expressions other than relative path (to
makenixpkgs-vet happy)
5. not referenced by nix files outside of the directory, other
than`pkgs/top-level/all-packages.nix`
6. not referencing nix files outside of the directory
7. not referencing `default.nix` (since it's changed to `package.nix`)
8. `outPath` doesn't change after migration

The tool is here: https://github.com/Aleksanaa/by-name-migrate.
2024-11-09 20:04:51 +08:00

73 lines
1.5 KiB
Nix

{ fetchFromGitHub
, gobject-introspection
, lib
, libadwaita
, python3Packages
, wrapGAppsHook4
, meson
, ninja
, desktop-file-utils
, pkg-config
, appstream-glib
, gtk4
}:
python3Packages.buildPythonApplication rec {
pname = "conjure";
version = "0.1.2";
format = "other";
src = fetchFromGitHub {
owner = "nate-xyz";
repo = "conjure";
rev = "v${version}";
hash = "sha256-qWeqUQxTTnmJt40Jm1qDTGGuSQikkurzOux8sZsmDQk=";
};
nativeBuildInputs = [
gobject-introspection
wrapGAppsHook4
desktop-file-utils
appstream-glib
meson
ninja
pkg-config
gtk4
];
buildInputs = [
libadwaita
];
propagatedBuildInputs = with python3Packages; [
pygobject3
loguru
wand
];
nativeCheckInputs = with python3Packages; [
pytest
];
dontWrapGApps = true;
preFixup = ''
makeWrapperArgs+=("''${gappsWrapperArgs[@]}")
'';
meta = with lib; {
description = "Magically transform your images";
mainProgram = "conjure";
longDescription = ''
Resize, crop, rotate, flip images, apply various filters and effects,
adjust levels and brightness, and much more. An intuitive tool for designers,
artists, or just someone who wants to enhance their images.
Built on top of the popular image processing library, ImageMagick with python
bindings from Wand.
'';
homepage = "https://github.com/nate-xyz/conjure";
license = licenses.gpl3Plus;
maintainers = with maintainers; [ sund3RRR ];
};
}