nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 57 lines 1.0 kB view raw
1{ 2 lib, 3 fetchFromCodeberg, 4 python3Packages, 5 wrapGAppsHook4, 6 gobject-introspection, 7 libadwaita, 8 meson, 9 ninja, 10 pkg-config, 11 desktop-file-utils, 12}: 13 14python3Packages.buildPythonApplication rec { 15 pname = "censor"; 16 version = "0.3.0"; 17 pyproject = false; 18 19 src = fetchFromCodeberg { 20 owner = "censor"; 21 repo = "Censor"; 22 tag = "v${version}"; 23 hash = "sha256-16Cy9yNOLvdVZ234kTB8fa585eI4f7yVnbMoPcHtGHk="; 24 }; 25 26 nativeBuildInputs = [ 27 meson 28 ninja 29 pkg-config 30 gobject-introspection 31 wrapGAppsHook4 32 desktop-file-utils 33 ]; 34 35 buildInputs = [ 36 libadwaita 37 ]; 38 39 dependencies = with python3Packages; [ 40 pygobject3 41 pymupdf 42 ]; 43 44 dontWrapGApps = true; 45 46 preFixup = '' 47 makeWrapperArgs+=("''${gappsWrapperArgs[@]}") 48 ''; 49 50 meta = { 51 description = "PDF document redaction for the GNOME desktop"; 52 homepage = "https://codeberg.org/censor/Censor"; 53 license = lib.licenses.gpl3Plus; 54 maintainers = with lib.maintainers; [ onny ]; 55 mainProgram = "censor"; 56 }; 57}