Skip to content

Commit

Permalink
[TMP] py7zr: checks + fix test url patch
Browse files Browse the repository at this point in the history
  • Loading branch information
pitkling committed Feb 22, 2025
1 parent 025515a commit 0f4a1a4
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 1 deletion.
27 changes: 26 additions & 1 deletion pkgs/development/python-modules/py7zr/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,14 @@
lib,
multivolumefile,
psutil,
py-cpuinfo,
pybcj,
pycryptodomex,
pyppmd,
pytest-benchmark,
pytest-remotedata,
pytest-timeout,
pytestCheckHook,
pyzstd,
setuptools,
setuptools-scm,
Expand All @@ -27,6 +32,11 @@ buildPythonPackage rec {
hash = "sha256-YR2cuHZWwqrytidAMbNvRV1/N4UZG8AMMmzcTcG9FvY=";
};

patches = [
# fix test using unaccessible Qt mirror `http://qt.mirrors.tds.net`
./fix-qtbase-url.patch
];

build-system = [
setuptools
setuptools-scm
Expand All @@ -44,10 +54,25 @@ buildPythonPackage rec {
texttable
];

nativeCheckInputs = [
py-cpuinfo
pytest-benchmark
pytest-remotedata
pytest-timeout
pytestCheckHook
];

pythonImportsCheck = [
"py7zr"
];

meta = {
homepage = "https://github.com/miurahr/py7zr";
description = "7zip in Python 3 with ZStandard, PPMd, LZMA2, LZMA1, Delta, BCJ, BZip2";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ PopeRigby ];
maintainers = with lib.maintainers; [
pitkling
PopeRigby
];
};
}
13 changes: 13 additions & 0 deletions pkgs/development/python-modules/py7zr/fix-qtbase-url.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
diff --git a/tests/test_concurrent.py b/tests/test_concurrent.py
index 60dfd59..a8d28a8 100644
--- a/tests/test_concurrent.py
+++ b/tests/test_concurrent.py
@@ -33,7 +33,7 @@
),
(
"qtbase.7z",
- "http://qt.mirrors.tds.net/qt/online/qtsdkrepository/"
+ "http://download.qt.io/online/qtsdkrepository/"
"windows_x86/desktop/qt5_5132/qt.qt5.5132.win32_mingw73/"
"5.13.2-0-201910281254qtbase-Windows-Windows_7-Mingw73-Windows-Windows_7-X86.7z",
),

0 comments on commit 0f4a1a4

Please sign in to comment.