mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-08-25 17:55:21 +00:00
[Backport release-26.05] pdfding: 1.10.0 -> 1.12.0 (#548890)
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
pdfding,
|
||||
}:
|
||||
let
|
||||
pdfjsVersion = "5.5.207"; # see update script
|
||||
pdfjsHash = "sha256-HikisEa6L+BqsG6imgWhV+4J46BluU5zqU1nFZAG0eM=";
|
||||
pdfjsVersion = "6.1.200"; # see update script
|
||||
pdfjsHash = "sha256-8hByPf4BXTXakRxomXtknthlCLcjG/pCLVnjMxqrROI=";
|
||||
pdfjs = fetchzip {
|
||||
url = "https://github.com/mozilla/pdf.js/releases/download/v${pdfjsVersion}/pdfjs-${pdfjsVersion}-dist.zip";
|
||||
hash = pdfjsHash;
|
||||
@@ -31,7 +31,7 @@ stdenv.mkDerivation (finalAttrs: {
|
||||
npmDeps = fetchNpmDeps {
|
||||
inherit (finalAttrs) src;
|
||||
name = "pdfding-${finalAttrs.version}-npm-deps";
|
||||
hash = "sha256-TDX2xoHj07aUeuLPt/TlgkdRdTiv3fNbriChzEB4EXk=";
|
||||
hash = "sha256-4mnw9sLQBZCBqmTKkjNHx03pgmvQ4CuDg3NOke4vMHs=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
|
||||
@@ -12,19 +12,20 @@ let
|
||||
in
|
||||
python.pkgs.buildPythonPackage (finalAttrs: {
|
||||
pname = "pdfding";
|
||||
version = "1.10.0";
|
||||
version = "1.12.0";
|
||||
src = fetchFromGitHub {
|
||||
owner = "mrmn2";
|
||||
repo = "PdfDing";
|
||||
tag = "v${finalAttrs.version}";
|
||||
hash = "sha256-C1osj8V9+z3ahl4+zUtyI22GMtSgNLzfdGttL7gPDvY=";
|
||||
hash = "sha256-LcZa9BxP99lI7Hqt3seyBeFNn4oLtR31yjq3Ap/IwUE=";
|
||||
};
|
||||
pyproject = true;
|
||||
|
||||
strictDeps = true;
|
||||
__structuredAttrs = true;
|
||||
|
||||
# remove supervisor from dependencies and fix version
|
||||
# remove supervisor from dependencies, we use systemd
|
||||
# and fix version, TODO move to pyprojectVersionPatchHook when it is available in stable 26.05
|
||||
postPatch = ''
|
||||
sed -i 's/supervisor.*$//' pyproject.toml
|
||||
sed -i 's/^version = .*$/version = "${finalAttrs.version}"/' pyproject.toml
|
||||
@@ -132,6 +133,7 @@ python.pkgs.buildPythonPackage (finalAttrs: {
|
||||
"''${makeWrapperArgs[@]}"
|
||||
'';
|
||||
|
||||
# NOTE: don't undo relaxing of any of these, they are bound to break again
|
||||
pythonRelaxDeps = [
|
||||
"django"
|
||||
"django-allauth"
|
||||
|
||||
Reference in New Issue
Block a user