mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-30 03:39:59 +00:00
Merge release-23.05 into staging-next-23.05
This commit is contained in:
@@ -90,11 +90,11 @@ in
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "brave";
|
||||
version = "1.52.129";
|
||||
version = "1.52.130";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://github.com/brave/brave-browser/releases/download/v${version}/brave-browser_${version}_amd64.deb";
|
||||
sha256 = "sha256-v5C8YbYv2gr2Tf+koM3+4s2xtHTabLcJcIlsQx3UxfM=";
|
||||
sha256 = "sha256-TKCAv1gGdAU9KDcrrREPgFjZOPNwTAfLrCh33DAf41U=";
|
||||
};
|
||||
|
||||
dontConfigure = true;
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -3,10 +3,10 @@
|
||||
{
|
||||
firefox = buildMozillaMach rec {
|
||||
pname = "firefox";
|
||||
version = "115.0.1";
|
||||
version = "115.0.2";
|
||||
src = fetchurl {
|
||||
url = "mirror://mozilla/firefox/releases/${version}/source/firefox-${version}.source.tar.xz";
|
||||
sha512 = "4368b3fa4ad4eb65752ab706f19175758bfa202c51a4c31d6512ab8e4f19dfdd0bd6fb8d845990d3c0aaad0e96a5c86e4ef699149ba2630c7a3c7dc4a5bc509c";
|
||||
sha512 = "de6ce8a2512e862c69a7d5c557d6168498d0d40e9c4b54b775f81c444e863a64c43130d57b51b360db4224c34b64a93f3ad263441caee713243b97750ec1eb4b";
|
||||
};
|
||||
|
||||
meta = {
|
||||
@@ -113,11 +113,11 @@
|
||||
|
||||
firefox-esr-115 = buildMozillaMach rec {
|
||||
pname = "firefox-esr-115";
|
||||
version = "115.0esr";
|
||||
version = "115.0.2esr";
|
||||
applicationName = "Mozilla Firefox ESR";
|
||||
src = fetchurl {
|
||||
url = "mirror://mozilla/firefox/releases/${version}/source/firefox-${version}.source.tar.xz";
|
||||
sha512 = "377ab48989ec17b64bd06fed8dd80dde50c06dd4120a6ca1c2fe90a20c85d1c0ef6143a73daeb0271fb20a04b0fb53d837e116b56c63718d517b07ed4243a3e9";
|
||||
sha512 = "f145d0e0e63032367af4198d4ca046589689b5852cb2451efbdcabeae37dfeda88dd0a2c317120ae5785228a6d7df21aa2d18c18ed7bf4b180823af37326a458";
|
||||
};
|
||||
|
||||
meta = {
|
||||
|
||||
@@ -6,6 +6,7 @@
|
||||
, cmake
|
||||
, ninja
|
||||
, python3
|
||||
, gobject-introspection
|
||||
, wrapGAppsHook
|
||||
, wrapQtAppsHook
|
||||
, extra-cmake-modules
|
||||
@@ -13,8 +14,9 @@
|
||||
, qtwayland
|
||||
, qtsvg
|
||||
, qtimageformats
|
||||
, qt5compat
|
||||
, gtk3
|
||||
, boost
|
||||
, fmt
|
||||
, libdbusmenu
|
||||
, lz4
|
||||
, xxHash
|
||||
@@ -55,6 +57,7 @@
|
||||
, microsoft_gsl
|
||||
, rlottie
|
||||
, stdenv
|
||||
, nix-update-script
|
||||
}:
|
||||
|
||||
# Main reference:
|
||||
@@ -73,15 +76,14 @@ let
|
||||
in
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "telegram-desktop";
|
||||
version = "4.8.1";
|
||||
# Note: Update via pkgs/applications/networking/instant-messengers/telegram/tdesktop/update.py
|
||||
version = "4.8.4";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "telegramdesktop";
|
||||
repo = "tdesktop";
|
||||
rev = "v${version}";
|
||||
fetchSubmodules = true;
|
||||
sha256 = "0mxxfh70dffkrq76nky3pwrk10s1q4ahxx2ddb58dz8igq6pl4zi";
|
||||
hash = "sha256-DRVFngQ4geJx2/7pT1VJzkcBZnVGgDvcGGUr9r38gSU=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
@@ -114,6 +116,7 @@ stdenv.mkDerivation rec {
|
||||
cmake
|
||||
ninja
|
||||
python3
|
||||
gobject-introspection
|
||||
wrapGAppsHook
|
||||
wrapQtAppsHook
|
||||
extra-cmake-modules
|
||||
@@ -124,8 +127,9 @@ stdenv.mkDerivation rec {
|
||||
qtwayland
|
||||
qtsvg
|
||||
qtimageformats
|
||||
qt5compat
|
||||
gtk3
|
||||
boost
|
||||
fmt
|
||||
libdbusmenu
|
||||
lz4
|
||||
xxHash
|
||||
@@ -174,6 +178,11 @@ stdenv.mkDerivation rec {
|
||||
"-DDESKTOP_APP_USE_PACKAGED_FONTS=OFF"
|
||||
];
|
||||
|
||||
preBuild = ''
|
||||
# for cppgir to locate gir files
|
||||
export GI_GIR_PATH="$XDG_DATA_DIRS"
|
||||
'';
|
||||
|
||||
postFixup = ''
|
||||
# This is necessary to run Telegram in a pure environment.
|
||||
# We also use gappsWrapperArgs from wrapGAppsHook.
|
||||
@@ -186,7 +195,7 @@ stdenv.mkDerivation rec {
|
||||
|
||||
passthru = {
|
||||
inherit tg_owt;
|
||||
updateScript = ./update.py;
|
||||
updateScript = nix-update-script { };
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
, openh264, usrsctp, libevent, libvpx
|
||||
, libX11, libXtst, libXcomposite, libXdamage, libXext, libXrender, libXrandr, libXi
|
||||
, glib, abseil-cpp, pcre, util-linuxMinimal, libselinux, libsepol, pipewire
|
||||
, mesa, valgrind, libepoxy, libglvnd
|
||||
, mesa, libepoxy, libglvnd, unstableGitUpdater
|
||||
}:
|
||||
|
||||
stdenv.mkDerivation {
|
||||
@@ -54,6 +54,8 @@ stdenv.mkDerivation {
|
||||
abseil-cpp openh264 usrsctp libevent libvpx openssl
|
||||
];
|
||||
|
||||
passthru.updateScript = unstableGitUpdater { };
|
||||
|
||||
meta = with lib; {
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ oxalica ];
|
||||
|
||||
@@ -1,73 +0,0 @@
|
||||
#! /usr/bin/env nix-shell
|
||||
#! nix-shell -i python3 -p python3 nix nix-prefetch-git
|
||||
|
||||
import fileinput
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import subprocess
|
||||
|
||||
from datetime import datetime
|
||||
from urllib.request import urlopen, Request
|
||||
|
||||
|
||||
DIR = os.path.dirname(os.path.abspath(__file__))
|
||||
HEADERS = {'Accept': 'application/vnd.github.v3+json'}
|
||||
|
||||
|
||||
def github_api_request(endpoint):
|
||||
base_url = 'https://api.github.com/'
|
||||
request = Request(base_url + endpoint, headers=HEADERS)
|
||||
with urlopen(request) as http_response:
|
||||
return json.loads(http_response.read().decode('utf-8'))
|
||||
|
||||
|
||||
def get_commit_date(repo, sha):
|
||||
url = f'https://api.github.com/repos/{repo}/commits/{sha}'
|
||||
request = Request(url, headers=HEADERS)
|
||||
with urlopen(request) as http_response:
|
||||
commit = json.loads(http_response.read().decode())
|
||||
date = commit['commit']['committer']['date'].rstrip('Z')
|
||||
date = datetime.fromisoformat(date).date().isoformat()
|
||||
return 'unstable-' + date
|
||||
|
||||
|
||||
def nix_prefetch_git(url, rev):
|
||||
"""Prefetches the requested Git revision (incl. submodules) of the given repository URL."""
|
||||
print(f'nix-prefetch-git {url} {rev}')
|
||||
out = subprocess.check_output(['nix-prefetch-git', '--quiet', '--url', url, '--rev', rev, '--fetch-submodules'])
|
||||
return json.loads(out)['sha256']
|
||||
|
||||
|
||||
def nix_prefetch_url(url, unpack=False):
|
||||
"""Prefetches the content of the given URL."""
|
||||
print(f'nix-prefetch-url {url}')
|
||||
options = ['--type', 'sha256']
|
||||
if unpack:
|
||||
options += ['--unpack']
|
||||
out = subprocess.check_output(['nix-prefetch-url'] + options + [url])
|
||||
return out.decode('utf-8').rstrip()
|
||||
|
||||
|
||||
def update_file(relpath, version, sha256, rev=None):
|
||||
file_path = os.path.join(DIR, relpath)
|
||||
with fileinput.FileInput(file_path, inplace=True) as f:
|
||||
for line in f:
|
||||
result = line
|
||||
result = re.sub(r'^ version = ".+";', f' version = "{version}";', result)
|
||||
result = re.sub(r'^ sha256 = ".+";', f' sha256 = "{sha256}";', result)
|
||||
if rev:
|
||||
result = re.sub(r'^ rev = ".*";', f' rev = "{rev}";', result)
|
||||
print(result, end='')
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
tdesktop_tag = github_api_request('repos/telegramdesktop/tdesktop/releases/latest')['tag_name']
|
||||
tdesktop_version = tdesktop_tag.lstrip('v')
|
||||
tdesktop_hash = nix_prefetch_git('https://github.com/telegramdesktop/tdesktop.git', tdesktop_tag)
|
||||
update_file('default.nix', tdesktop_version, tdesktop_hash)
|
||||
tg_owt_ref = github_api_request('repos/desktop-app/tg_owt/commits/master')['sha']
|
||||
tg_owt_version = get_commit_date('desktop-app/tg_owt', tg_owt_ref)
|
||||
tg_owt_hash = nix_prefetch_git('https://github.com/desktop-app/tg_owt.git', tg_owt_ref)
|
||||
update_file('tg_owt.nix', tg_owt_version, tg_owt_hash, tg_owt_ref)
|
||||
tg_owt_ref = github_api_request('repos/desktop-app/tg_owt/commits/master')['sha']
|
||||
@@ -16,11 +16,10 @@
|
||||
, stdenv
|
||||
, fetchFromGitea
|
||||
, buildNpmPackage
|
||||
, writeShellApplication
|
||||
}:
|
||||
|
||||
let
|
||||
frontend = buildNpmPackage rec {
|
||||
frontend = buildNpmPackage {
|
||||
pname = "forgejo-frontend";
|
||||
inherit (forgejo) src version;
|
||||
|
||||
@@ -39,17 +38,17 @@ let
|
||||
in
|
||||
buildGoModule rec {
|
||||
pname = "forgejo";
|
||||
version = "1.19.3-0";
|
||||
version = "1.19.4-0";
|
||||
|
||||
src = fetchFromGitea {
|
||||
domain = "codeberg.org";
|
||||
owner = "forgejo";
|
||||
repo = "forgejo";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-0T26EsU5lJ+Rxy/jSDn8nTk5IdHO8oK3LvN7tPArPgs=";
|
||||
hash = "sha256-pTcnST8A4gADPBkNago9uwRFEmTx8vNONL/Emer4xLI=";
|
||||
};
|
||||
|
||||
vendorHash = "sha256-bnLcHmwOh/fw6ecgsndX2BmVf11hJWllE+f2J8YSzec=";
|
||||
vendorHash = "sha256-LKxhNbSIRaP4EGWX6mE26G9CWfoFTrPRjrL4ShpRHWo=";
|
||||
|
||||
subPackages = [ "." ];
|
||||
|
||||
@@ -111,12 +110,12 @@ buildGoModule rec {
|
||||
tests = nixosTests.forgejo;
|
||||
};
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "A self-hosted lightweight software forge";
|
||||
homepage = "https://forgejo.org";
|
||||
changelog = "https://codeberg.org/forgejo/forgejo/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ emilylange urandom ];
|
||||
changelog = "https://codeberg.org/forgejo/forgejo/releases/tag/${src.rev}";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ emilylange urandom bendlas ];
|
||||
broken = stdenv.isDarwin;
|
||||
mainProgram = "gitea";
|
||||
};
|
||||
|
||||
@@ -17,13 +17,13 @@
|
||||
}:
|
||||
buildDotnetModule rec {
|
||||
pname = "github-runner";
|
||||
version = "2.305.0";
|
||||
version = "2.306.0";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "actions";
|
||||
repo = "runner";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-sI29B4VlSc4DQW7mrBZmtWPKgO3q8B5Dt5JSVCY1nCQ=";
|
||||
hash = "sha256-wffHekmyMIGTpUHBPgcxAOPRoTDuuWJZh9pJly3I2eQ=";
|
||||
leaveDotGit = true;
|
||||
postFetch = ''
|
||||
git -C $out rev-parse --short HEAD > $out/.git-revision
|
||||
|
||||
@@ -12,11 +12,11 @@
|
||||
}:
|
||||
let
|
||||
pname = "maptool";
|
||||
version = "1.13.1";
|
||||
version = "1.13.2";
|
||||
repoBase = "https://github.com/RPTools/${pname}";
|
||||
src = fetchurl {
|
||||
url = "${repoBase}/releases/download/${version}/MapTool-${version}.jar";
|
||||
hash = "sha256-EHisFvLaqi8VqIdygf0nxohKLL3c/yE5Y6jAcT0B2q0=";
|
||||
hash = "sha256-14ULI1OAk0V4DqiL5IF7DK6pw0NRfmU+omrFP72PblA=";
|
||||
};
|
||||
|
||||
icon = fetchurl {
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
with lib;
|
||||
|
||||
buildLinux (args // rec {
|
||||
version = "6.4.2";
|
||||
version = "6.4.3";
|
||||
|
||||
# modDirVersion needs to be x.y.z, will automatically add .0 if needed
|
||||
modDirVersion = versions.pad 3 version;
|
||||
@@ -13,6 +13,6 @@ buildLinux (args // rec {
|
||||
|
||||
src = fetchurl {
|
||||
url = "mirror://kernel/linux/kernel/v6.x/linux-${version}.tar.xz";
|
||||
sha256 = "0b0623pvf9spb5biv1k4wzjbcj9fyf2svk69fdyb3ibn84ian9m3";
|
||||
sha256 = "18c8ikghvlr6h9jajy11dldck4h57wl301j14rxg7xhd6qlysd3i";
|
||||
};
|
||||
} // (args.argsOverride or { }))
|
||||
|
||||
@@ -7,11 +7,11 @@
|
||||
|
||||
stdenv.mkDerivation rec {
|
||||
pname = "redis";
|
||||
version = "7.0.11";
|
||||
version = "7.0.12";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://download.redis.io/releases/${pname}-${version}.tar.gz";
|
||||
hash = "sha256-ziUNH7oELGE944oV1AiJt498ttVGGifjUBe6ObByIeM=";
|
||||
hash = "sha256-ndg9WyeLsr8OOb/rdcPoFwAk7brxG6E7cDeylFz0irc=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
|
||||
@@ -49,7 +49,21 @@ stdenv.mkDerivation rec {
|
||||
hash = "sha256-EKt5mH9GmzeR4zdPDFOt26T9STpG1khVrY4DFIv5Maw=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [ autoreconfHook pkg-config ];
|
||||
nativeBuildInputs = [
|
||||
autoreconfHook
|
||||
pkg-config
|
||||
# For glib we want the `dev` output for the same library we are
|
||||
# also linking against, since pkgsHostTarget.glib.dev exposes
|
||||
# some extra tools that are built for build->host execution.
|
||||
# To achieve this, we coerce the output to a string to prevent
|
||||
# mkDerivation's splicing logic from kicking in.
|
||||
"${glib.dev}"
|
||||
];
|
||||
|
||||
makeFlags = [
|
||||
# Workaround for https://github.com/mikebrady/shairport-sync/issues/1705
|
||||
"AR=${stdenv.cc.bintools.targetPrefix}ar"
|
||||
];
|
||||
|
||||
buildInputs = [
|
||||
openssl
|
||||
@@ -100,6 +114,8 @@ stdenv.mkDerivation rec {
|
||||
++ optional enableLibdaemon "--with-libdaemon"
|
||||
++ optional enableAirplay2 "--with-airplay-2";
|
||||
|
||||
strictDeps = true;
|
||||
|
||||
meta = with lib; {
|
||||
homepage = "https://github.com/mikebrady/shairport-sync";
|
||||
description = "Airtunes server and emulator with multi-room capabilities";
|
||||
|
||||
@@ -14,6 +14,10 @@ toPythonModule (buildPythonApplication rec {
|
||||
sha256 = "sha256-+Wsg1k/h41luk5aVfSn11/lGv8hZYVvpHLbbYHfsExw=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
./fix-flask-babel-3.0.patch
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
sed -i 's/==.*$//' requirements.txt
|
||||
'';
|
||||
|
||||
27
pkgs/servers/web-apps/searx/fix-flask-babel-3.0.patch
Normal file
27
pkgs/servers/web-apps/searx/fix-flask-babel-3.0.patch
Normal file
@@ -0,0 +1,27 @@
|
||||
commit 38b3a4f70e3226a091c53300659752c595b120f9
|
||||
Author: rnhmjoj <rnhmjoj@inventati.org>
|
||||
Date: Fri Jun 30 21:48:35 2023 +0200
|
||||
|
||||
Fix for flask-babel 3.0
|
||||
|
||||
diff --git a/searx/webapp.py b/searx/webapp.py
|
||||
index 2027e72d..f3174a45 100755
|
||||
--- a/searx/webapp.py
|
||||
+++ b/searx/webapp.py
|
||||
@@ -167,7 +167,7 @@ _flask_babel_get_translations = flask_babel.get_translations
|
||||
def _get_translations():
|
||||
if has_request_context() and request.form.get('use-translation') == 'oc':
|
||||
babel_ext = flask_babel.current_app.extensions['babel']
|
||||
- return Translations.load(next(babel_ext.translation_directories), 'oc')
|
||||
+ return Translations.load(babel_ext.translation_directories[0], 'oc')
|
||||
|
||||
return _flask_babel_get_translations()
|
||||
|
||||
@@ -188,7 +188,6 @@ def _get_browser_or_settings_language(request, lang_list):
|
||||
return settings['search']['default_lang'] or 'en'
|
||||
|
||||
|
||||
-@babel.localeselector
|
||||
def get_locale():
|
||||
if 'locale' in request.form\
|
||||
and request.form['locale'] in settings['locales']:
|
||||
@@ -23,6 +23,7 @@
|
||||
|
||||
, src
|
||||
, version
|
||||
, extraPatches ? [ ]
|
||||
, pluginOverrides ? { }
|
||||
, disableAllPlugins ? false
|
||||
|
||||
@@ -45,22 +46,11 @@ let
|
||||
|
||||
pluginWrapperBins = concatMap (p: p.wrapperBins) (attrValues enabledPlugins);
|
||||
in
|
||||
python3Packages.buildPythonApplication rec {
|
||||
python3Packages.buildPythonApplication {
|
||||
pname = "beets";
|
||||
inherit src version;
|
||||
|
||||
patches = [
|
||||
# Bash completion fix for Nix
|
||||
./patches/bash-completion-always-print.patch
|
||||
# Reported upstream at:
|
||||
# https://github.com/beetbox/beets/issues/4836
|
||||
./patches/remove-failing-embedart-test.patch
|
||||
(fetchpatch {
|
||||
# Fix unidecode>=1.3.5 compat
|
||||
url = "https://github.com/beetbox/beets/commit/5ae1e0f3c8d3a450cb39f7933aa49bb78c2bc0d9.patch";
|
||||
hash = "sha256-gqkrE+U1j3tt1qPRJufTGS/GftaSw/gweXunO/mCVG8=";
|
||||
})
|
||||
];
|
||||
patches = extraPatches;
|
||||
|
||||
propagatedBuildInputs = with python3Packages; [
|
||||
confuse
|
||||
@@ -74,6 +64,7 @@ python3Packages.buildPythonApplication rec {
|
||||
pyyaml
|
||||
reflink
|
||||
unidecode
|
||||
typing-extensions
|
||||
] ++ (concatMap (p: p.propagatedBuildInputs) (attrValues enabledPlugins));
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
{ lib
|
||||
, callPackage
|
||||
, fetchFromGitHub
|
||||
, fetchpatch
|
||||
}:
|
||||
/*
|
||||
** To customize the enabled beets plugins, use the pluginOverrides input to the
|
||||
@@ -26,18 +27,37 @@ lib.makeExtensible (self: {
|
||||
rev = "v${version}";
|
||||
hash = "sha256-fT+rCJJQR7bdfAcmeFRaknmh4ZOP4RCx8MXpq7/D8tM=";
|
||||
};
|
||||
extraPatches = [
|
||||
# Bash completion fix for Nix
|
||||
./patches/bash-completion-always-print.patch
|
||||
|
||||
# Fix unidecode>=1.3.5 compat
|
||||
(fetchpatch {
|
||||
url = "https://github.com/beetbox/beets/commit/5ae1e0f3c8d3a450cb39f7933aa49bb78c2bc0d9.patch";
|
||||
hash = "sha256-gqkrE+U1j3tt1qPRJufTGS/GftaSw/gweXunO/mCVG8=";
|
||||
})
|
||||
|
||||
# Fix embedart with ImageMagick 7.1.1-12
|
||||
# https://github.com/beetbox/beets/pull/4839
|
||||
# The upstream patch does not apply on 1.6.0, as the related code has been refactored since
|
||||
./patches/fix-embedart-imagick-7.1.1-12.patch
|
||||
];
|
||||
};
|
||||
|
||||
beets-minimal = self.beets.override { disableAllPlugins = true; };
|
||||
|
||||
beets-unstable = callPackage ./common.nix {
|
||||
version = "unstable-2022-08-27";
|
||||
version = "unstable-2023-07-05";
|
||||
src = fetchFromGitHub {
|
||||
owner = "beetbox";
|
||||
repo = "beets";
|
||||
rev = "50bd693057de472470ab5175fae0cdb5b75811c6";
|
||||
hash = "sha256-91v1StaByG60ryhQqByBXu6sFCjk0qT0nsUPnocSEE4=";
|
||||
rev = "9481402b3c20739ca0b879d19adbfca22ccd6a44";
|
||||
hash = "sha256-AKmozMNVchysoQcUWd90Ic6bQBKQgylVn0E3i85dGb8=";
|
||||
};
|
||||
extraPatches = [
|
||||
# Bash completion fix for Nix
|
||||
./patches/unstable-bash-completion-always-print.patch
|
||||
];
|
||||
pluginOverrides = {
|
||||
# unstable has a new plugin, so we register it here.
|
||||
limit = { builtin = true; };
|
||||
|
||||
@@ -0,0 +1,13 @@
|
||||
diff --git a/beets/art.py b/beets/art.py
|
||||
index 13d5dfbd..ac1d2fd8 100644
|
||||
--- a/beets/art.py
|
||||
+++ b/beets/art.py
|
||||
@@ -132,7 +132,7 @@ def check_art_similarity(log, item, imagepath, compare_threshold):
|
||||
convert_cmd = ['convert', syspath(imagepath, prefix=False),
|
||||
syspath(art, prefix=False),
|
||||
'-colorspace', 'gray', 'MIFF:-']
|
||||
- compare_cmd = ['compare', '-metric', 'PHASH', '-', 'null:']
|
||||
+ compare_cmd = ['compare', '-define', 'phash:colorspaces=sRGB,HCLp', '-metric', 'PHASH', '-', 'null:']
|
||||
log.debug('comparing images with pipeline {} | {}',
|
||||
convert_cmd, compare_cmd)
|
||||
convert_proc = subprocess.Popen(
|
||||
@@ -1,24 +0,0 @@
|
||||
diff --git i/test/test_embedart.py w/test/test_embedart.py
|
||||
index 23a6f5e5..91b9c8c2 100644
|
||||
--- i/test/test_embedart.py
|
||||
+++ w/test/test_embedart.py
|
||||
@@ -163,19 +163,6 @@ class EmbedartCliTest(TestHelper, FetchImageHelper):
|
||||
'Image written is not {}'.format(
|
||||
displayable_path(self.abbey_artpath)))
|
||||
|
||||
- @require_artresizer_compare
|
||||
- def test_accept_similar_art(self):
|
||||
- self._setup_data(self.abbey_similarpath)
|
||||
- album = self.add_album_fixture()
|
||||
- item = album.items()[0]
|
||||
- self.run_command('embedart', '-y', '-f', self.abbey_artpath)
|
||||
- config['embedart']['compare_threshold'] = 20
|
||||
- self.run_command('embedart', '-y', '-f', self.abbey_similarpath)
|
||||
- mediafile = MediaFile(syspath(item.path))
|
||||
-
|
||||
- self.assertEqual(mediafile.images[0].data, self.image_data,
|
||||
- 'Image written is not {}'.format(
|
||||
- displayable_path(self.abbey_similarpath)))
|
||||
|
||||
def test_non_ascii_album_path(self):
|
||||
resource_path = os.path.join(_common.RSRC, b'image.mp3')
|
||||
@@ -0,0 +1,43 @@
|
||||
diff --git a/beets/ui/commands.py b/beets/ui/commands.py
|
||||
index 1377ad0c..e178eeae 100755
|
||||
--- a/beets/ui/commands.py
|
||||
+++ b/beets/ui/commands.py
|
||||
@@ -1831,20 +1831,6 @@ default_commands.append(config_cmd)
|
||||
def print_completion(*args):
|
||||
for line in completion_script(default_commands + plugins.commands()):
|
||||
print_(line, end='')
|
||||
- if not any(os.path.isfile(syspath(p)) for p in BASH_COMPLETION_PATHS):
|
||||
- log.warning('Warning: Unable to find the bash-completion package. '
|
||||
- 'Command line completion might not work.')
|
||||
-
|
||||
-
|
||||
-BASH_COMPLETION_PATHS = [
|
||||
- b'/etc/bash_completion',
|
||||
- b'/usr/share/bash-completion/bash_completion',
|
||||
- b'/usr/local/share/bash-completion/bash_completion',
|
||||
- # SmartOS
|
||||
- b'/opt/local/share/bash-completion/bash_completion',
|
||||
- # Homebrew (before bash-completion2)
|
||||
- b'/usr/local/etc/bash_completion',
|
||||
-]
|
||||
|
||||
|
||||
def completion_script(commands):
|
||||
diff --git a/test/test_ui.py b/test/test_ui.py
|
||||
index f66917dc..f3d934c6 100644
|
||||
--- a/test/test_ui.py
|
||||
+++ b/test/test_ui.py
|
||||
@@ -1310,12 +1310,7 @@ class CompletionTest(_common.TestCase, TestHelper):
|
||||
stdout=subprocess.PIPE, env=env)
|
||||
|
||||
# Load bash_completion library.
|
||||
- for path in commands.BASH_COMPLETION_PATHS:
|
||||
- if os.path.exists(syspath(path)):
|
||||
- bash_completion = path
|
||||
- break
|
||||
- else:
|
||||
- self.skipTest('bash-completion script not found')
|
||||
+ self.skipTest('bash-completion script not found')
|
||||
try:
|
||||
with open(util.syspath(bash_completion), 'rb') as f:
|
||||
tester.stdin.writelines(f)
|
||||
@@ -1227,7 +1227,7 @@ with pkgs;
|
||||
makeWrapper = makeBinaryWrapper;
|
||||
};
|
||||
|
||||
wrapGAppsHook4 = wrapGAppsHook.override { gtk3 = gtk4; };
|
||||
wrapGAppsHook4 = wrapGAppsHook.override { gtk3 = __splicedPackages.gtk4; };
|
||||
|
||||
wrapGAppsNoGuiHook = wrapGAppsHook.override { isGraphical = false; };
|
||||
|
||||
|
||||
Reference in New Issue
Block a user