1 { stdenv, lib, python3Packages, gettext, qt5, fetchFromGitHub }:
3 python3Packages.buildPythonApplication rec {
9 src = fetchFromGitHub {
13 hash = "sha256-/jkZiCapmCLMp7WfgUmpsR8aNCfb3gBELlMYaC4e7zI=";
19 python3Packages.setuptools
23 propagatedBuildInputs = with python3Packages; [
35 "PREFIX=${placeholder "out"}"
39 nativeCheckInputs = with python3Packages; [
44 export HOME="$(mktemp -d)"
47 # Avoid double wrapping Python programs.
48 dontWrapQtApps = true;
50 # TODO: A bug in python wrapper
51 # see https://github.com/NixOS/nixpkgs/pull/75054#discussion_r357656916
53 makeWrapperArgs="''${qtWrapperArgs[@]}"
56 # Executable in $out/bin is a symlink to $out/share/dupeguru/run.py
57 # so wrapPythonPrograms hook does not handle it automatically.
59 wrapPythonProgramsIn "$out/share/dupeguru" "$out $pythonPath"
63 broken = stdenv.hostPlatform.isDarwin;
64 description = "GUI tool to find duplicate files in a system";
65 homepage = "https://github.com/arsenetar/dupeguru";
66 license = licenses.bsd3;
67 platforms = platforms.unix;
68 maintainers = with maintainers; [ novoxd ];
69 mainProgram = "dupeguru";