dupeguru: 4.3.1 -> 4.3.1-unstable-2026-01-06

This commit is contained in:
magicquark
2026-03-04 02:03:17 +00:00
parent 012ca49b73
commit 16c7b8cd98
2 changed files with 7 additions and 40 deletions
+7 -13
View File
@@ -1,47 +1,41 @@
{
stdenv,
lib,
python311Packages,
python3Packages,
gettext,
qt5,
fetchFromGitHub,
}:
let
python3Packages = python311Packages;
in
python3Packages.buildPythonApplication rec {
pname = "dupeguru";
version = "4.3.1";
version = "4.3.1-unstable-2026-01-06";
pyproject = false;
src = fetchFromGitHub {
owner = "arsenetar";
repo = "dupeguru";
rev = version;
hash = "sha256-/jkZiCapmCLMp7WfgUmpsR8aNCfb3gBELlMYaC4e7zI=";
rev = "16aa6c21ffc2c33d44ff4a47bfa1a623c16ed626";
hash = "sha256-0x2ZpjaxpWVhm9vimDA06y1BOvpoU6KZYz5MPAoWAts=";
};
patches = [
./remove-setuptools-sandbox.patch
];
nativeBuildInputs = [
gettext
python3Packages.pyqt5
python3Packages.setuptools
python3Packages.sphinx
qt5.wrapQtAppsHook
];
propagatedBuildInputs = with python3Packages; [
hsaudiotag3k
distro
mutagen
polib
pyqt5
pyqt5-sip
semantic-version
send2trash
sphinx
xxhash
];
makeFlags = [
@@ -1,27 +0,0 @@
diff --git a/build.py b/build.py
index 06905a11..56d54a17 100644
--- a/build.py
+++ b/build.py
@@ -10,7 +10,7 @@ from optparse import OptionParser
import shutil
from multiprocessing import Pool
-from setuptools import sandbox
+import subprocess
from hscommon import sphinxgen
from hscommon.build import (
add_to_pythonpath,
@@ -118,7 +118,12 @@ def build_normpo():
def build_pe_modules():
print("Building PE Modules")
# Leverage setup.py to build modules
- sandbox.run_setup("setup.py", ["build_ext", "--inplace"])
+ result = subprocess.run(
+ [sys.executable, "setup.py", "build_ext", "--inplace"],
+ check=True,
+ )
+ if result.returncode != 0:
+ sys.exit("Error building PE modules. Please check the output above.")
def build_normal():