pymupdf: 1.18.16 -> 1.18.17 (#135661)

This commit is contained in:
luhuaei 2021-08-26 06:16:41 +08:00 committed by GitHub
parent 0960551e82
commit f74b8acfac
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 26 deletions

View file

@ -13,21 +13,14 @@
buildPythonPackage rec {
pname = "pymupdf";
version = "1.18.16";
version = "1.18.17";
src = fetchPypi {
pname = "PyMuPDF";
inherit version;
sha256 = "b21e39098fbbe0fdf269fdb2d1dd25a3847bbf22785ee8903d3a5637c2d0b9d7";
sha256 = "fa39ee5e91eae77818e07b6bb7e0cb0b402ad88e39a74b08626ce1c2150c5414";
};
patchFlags = [ "--binary" "--ignore-whitespace" ];
patches = [
# Add NIX environment support.
# Should be removed next pyMuPDF release.
./nix-support.patch
];
postPatch = ''
substituteInPlace setup.py \
--replace '/usr/include/mupdf' ${mupdf.dev}/include/mupdf

View file

@ -1,17 +0,0 @@
--- a/setup.py
+++ b/setup.py
@@ -36,10 +36,14 @@ LIBRARIES = {
"opensuse": OPENSUSE,
"fedora": FEDORA,
"alpine": ALPINE,
+ "nix": FEDORA,
}
def load_libraries():
+ if os.getenv("NIX_STORE"):
+ return LIBRARIES["nix"]
+
try:
import distro