Merge pull request #332385 from greg-hellings/browsr-1.21.0

browsr: 1.19.0 -> 1.21.0, mupdf: 1.23.6 -> 1.24.8, python312Packages.pymupdf: 1.23.6 -> 1.24.8, python312Packages.textual-universal-directory: 1.1.0 -> 1.5.0

authored by Thiago Kenji Okada and committed by GitHub e0626c75 fa70b505

+32 -34
+3 -2
pkgs/applications/file-managers/browsr/default.nix
··· 6 6 7 7 python3.pkgs.buildPythonApplication rec { 8 8 pname = "browsr"; 9 - version = "1.19.0"; 9 + version = "1.21.0"; 10 10 pyproject = true; 11 11 12 12 src = fetchFromGitHub { 13 13 owner = "juftin"; 14 14 repo = "browsr"; 15 15 rev = "refs/tags/v${version}"; 16 - hash = "sha256-V5B+/zfUlpF0TMTHqzyjapW93/DoJKgbJkTMX2NZyIQ="; 16 + hash = "sha256-76OzJOunZRVSGalQiyX+TSukD8rRIFHxA713NqOn3PY="; 17 17 }; 18 18 19 19 nativeBuildInputs = with python3.pkgs; [ ··· 56 56 "art" 57 57 "pandas" 58 58 "pymupdf" 59 + "pyperclip" 59 60 "rich-click" 60 61 "rich-pixels" 61 62 "rich"
-13
pkgs/applications/misc/mupdf/0001-Use-command-v-in-favor-of-which.patch
··· 1 - Use command -v in favor of which 2 - 3 - --- a/Makerules 4 - +++ b/Makerules 5 - @@ -170,7 +170,7 @@ 6 - ifneq ($(ARCHFLAGS),) 7 - $(warning "MacOS with ARCHFLAGS set. Assuming we are building for arm64, and setting HAVE_LIBCRYPTO to no.") 8 - HAVE_LIBCRYPTO := no 9 - - else ifeq (, $(shell which pkg-config)) 10 - + else ifeq (, $(shell command -v pkg-config)) 11 - $(warning "No pkg-config found, install it for proper integration of libcrypto") 12 - else 13 - HAVE_LIBCRYPTO := $(shell pkg-config --exists 'libcrypto >= 1.1.0' && echo yes)
+9 -8
pkgs/applications/misc/mupdf/default.nix
··· 60 60 61 61 in 62 62 stdenv.mkDerivation rec { 63 - version = "1.23.6"; 63 + version = "1.24.8"; 64 64 pname = "mupdf"; 65 65 66 66 src = fetchurl { 67 67 url = "https://mupdf.com/downloads/archive/${pname}-${version}-source.tar.gz"; 68 - sha256 = "sha256-rBHrhZ3UBEiOUVPNyWUbtDQeW6r007Pyfir8gvmq3Ck="; 68 + hash = "sha256-pRjZvpds2yAG1FOC1/+xubjWS8P9PLc8picNdS+n9Eg="; 69 69 }; 70 70 71 - patches = [ ./0001-Use-command-v-in-favor-of-which.patch 72 - ./0002-Add-Darwin-deps.patch 73 - ./0003-Fix-cpp-build.patch 74 - ]; 71 + patches = [ 72 + ./0002-Add-Darwin-deps.patch 73 + ./0003-Fix-cpp-build.patch 74 + ]; 75 75 76 76 postPatch = '' 77 77 substituteInPlace Makerules --replace "(shell pkg-config" "(shell $PKG_CONFIG" ··· 166 166 EOF 167 167 168 168 moveToOutput "bin" "$bin" 169 + cp ./build/shared-release/libmupdf.so* $out/lib 169 170 '' + (lib.optionalString (stdenv.isDarwin) '' 170 171 for exe in $bin/bin/*; do 171 172 install_name_tool -change build/shared-release/libmupdf.dylib $out/lib/libmupdf.dylib "$exe" 172 173 done 173 174 '') + (lib.optionalString (enableX11 || enableGL) '' 174 175 mkdir -p $bin/share/icons/hicolor/48x48/apps 175 - cp docs/logo/mupdf.png $bin/share/icons/hicolor/48x48/apps 176 + cp docs/logo/mupdf-icon-48.png $bin/share/icons/hicolor/48x48/apps 176 177 '') + (if enableGL then '' 177 178 ln -s "$bin/bin/mupdf-gl" "$bin/bin/mupdf" 178 179 '' else lib.optionalString (enableX11) '' 179 180 ln -s "$bin/bin/mupdf-x11" "$bin/bin/mupdf" 180 181 '') + (lib.optionalString (enableCxx) '' 181 182 cp platform/c++/include/mupdf/*.h $out/include/mupdf 182 - cp build/*/libmupdfcpp.so $out/lib 183 + cp build/*/libmupdfcpp.so* $out/lib 183 184 '') + (lib.optionalString (enablePython) ('' 184 185 mkdir -p $out/${python3.sitePackages}/mupdf 185 186 cp build/*/_mupdf.so $out/${python3.sitePackages}
+18 -9
pkgs/development/python-modules/pymupdf/default.nix
··· 40 40 in 41 41 buildPythonPackage rec { 42 42 pname = "pymupdf"; 43 - version = "1.23.26"; 43 + version = "1.24.8"; 44 44 pyproject = true; 45 45 46 46 disabled = pythonOlder "3.7"; ··· 49 49 owner = "pymupdf"; 50 50 repo = "PyMuPDF"; 51 51 rev = "refs/tags/${version}"; 52 - hash = "sha256-m2zq04+PDnlzFuqeSt27UhdHXTHxpHdMPIg5RQl/5bQ="; 52 + hash = "sha256-NG4ZJYMYTQHiqpnaOz7hxf5UW417UKawe5EqXaBnKJ8="; 53 53 }; 54 54 55 55 # swig is not wrapped as Python package 56 56 # libclang calls itself just clang in wheel metadata 57 57 postPatch = '' 58 - substituteInPlace pyproject.toml \ 59 - --replace-fail '"swig",' "" \ 60 - --replace-fail "libclang" "clang" 58 + substituteInPlace setup.py \ 59 + --replace-fail "ret.append( 'swig')" "pass" \ 61 60 ''; 62 61 63 62 nativeBuildInputs = [ ··· 81 80 env = { 82 81 # force using system MuPDF (must be defined in environment and empty) 83 82 PYMUPDF_SETUP_MUPDF_BUILD = ""; 83 + # Setup the name of the package away from the default 'libclang' 84 + PYMUPDF_SETUP_LIBCLANG = "clang"; 84 85 # provide MuPDF paths 85 86 PYMUPDF_MUPDF_LIB = "${lib.getLib mupdf-cxx}/lib"; 86 87 PYMUPDF_MUPDF_INCLUDE = "${lib.getDev mupdf-cxx}/include"; ··· 104 105 105 106 disabledTests = 106 107 [ 108 + # Fails in release tarballs without .git 109 + "test_codespell" 110 + "test_pylint" 107 111 # fails for indeterminate reasons 108 112 "test_2548" 109 113 "test_2753" ··· 140 144 "test_3140" 141 145 "test_3209" 142 146 "test_3209" 147 + "test_3301" 148 + "test_3347" 143 149 "test_caret" 144 150 "test_deletion" 145 151 "test_file_info" ··· 153 159 "test_htmlbox" 154 160 "test_2246" 155 161 "test_3140" 162 + "test_3400" 163 + "test_707560" 164 + "test_open" 165 + "test_objectstream1" 166 + "test_objectstream2" 167 + "test_objectstream3" 156 168 "test_fit_springer" 157 169 "test_write_stabilized_with_links" 158 170 "test_textbox" ··· 173 185 "tests/test_docs_samples.py" 174 186 ]; 175 187 176 - pythonImportsCheck = [ 177 - "fitz" 178 - "fitz_old" 179 - ]; 188 + pythonImportsCheck = [ "fitz" ]; 180 189 181 190 meta = with lib; { 182 191 description = "Python bindings for MuPDF's rendering library";
+2 -2
pkgs/development/python-modules/textual-universal-directorytree/default.nix
··· 16 16 17 17 buildPythonPackage rec { 18 18 pname = "textual-universal-directorytree"; 19 - version = "1.1.0"; 19 + version = "1.5.0"; 20 20 pyproject = true; 21 21 22 22 disabled = pythonOlder "3.8"; ··· 25 25 owner = "juftin"; 26 26 repo = "textual-universal-directorytree"; 27 27 rev = "refs/tags/v${version}"; 28 - hash = "sha256-ncQ3IRaZaCv1rMUWT9dkUKo6OAEC5pziMCM7adIBGWo="; 28 + hash = "sha256-hUig0aJWSS0FsgRIrs74/uVaQgH6tczJWO5rj6TVOvQ="; 29 29 }; 30 30 31 31 nativeBuildInputs = [ hatchling ];