Unverified Commit 243f4c9a authored by seth's avatar seth
Browse files

python312Packages.pdfx: drop

parent e385a853
Loading
Loading
Loading
Loading
+0 −42
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pdfminer-six,
  chardet,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "pdfx";
  version = "1.4.1";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "metachris";
    repo = "pdfx";
    rev = "v${version}";
    hash = "sha256-POpP6XwcqwvImrtIiDjpnHoNE0MKapuPjxojo+ocBK0=";
  };

  postPatch = ''
    substituteInPlace requirements.txt \
      --replace "chardet==4.0.0" "chardet" \
      --replace "pdfminer.six==20201018" "pdfminer.six"
  '';

  propagatedBuildInputs = [
    pdfminer-six
    chardet
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = with lib; {
    inherit (src.meta) homepage;
    description = "Extract references (pdf, url, doi, arxiv) and metadata from a PDF";
    mainProgram = "pdfx";
    license = licenses.asl20;
    maintainers = [ ];
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -385,6 +385,7 @@ mapAliases ({
  pcbnew-transition = pcbnewtransition; # added 2024-03-21
  pdfposter = throw "pdfposter was promoted to a top-level attribute"; # Added 2023-06-29
  pdfminer = pdfminer-six; # added 2022-05-25
  pdfx = throw "pdfx has been removed because the upstream repository was archived in 2023"; # Added 2024-10-04
  pep257 = pydocstyle; # added 2022-04-12
  pixelmatch = "pixelmatch has been removed as it was unmaintained"; # Added 2024-08-18
  pkutils = throw "pkutils was removed as it was unused and is not applicable to modern Python build tools"; # added 2024-07-28
+0 −2
Original line number Diff line number Diff line
@@ -9778,8 +9778,6 @@ self: super: with self; {
  pdftotext = callPackage ../development/python-modules/pdftotext { };
  pdfx = callPackage ../development/python-modules/pdfx { };
  pdm-backend = callPackage ../development/python-modules/pdm-backend { };
  pdm-build-locked = callPackage ../development/python-modules/pdm-build-locked { };