From 4c761cea93e99e6b4b677ec73a8580200ca13ac5 Mon Sep 17 00:00:00 2001 From: jokatzke Date: Mon, 29 Jul 2024 09:59:28 +0200 Subject: [PATCH] python312Packages.trafilatura: 1.10.0 -> 1.12.0 Diff: https://github.com/adbar/trafilatura/compare/v1.10.0...v1.12.0 Changelog: https://github.com/adbar/trafilatura/blob/v1.12.0/HISTORY.md --- .../python-modules/trafilatura/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/trafilatura/default.nix b/pkgs/development/python-modules/trafilatura/default.nix index 720ead19e010..984d95c00cb1 100644 --- a/pkgs/development/python-modules/trafilatura/default.nix +++ b/pkgs/development/python-modules/trafilatura/default.nix @@ -16,14 +16,14 @@ buildPythonPackage rec { pname = "trafilatura"; - version = "1.10.0"; + version = "1.12.0"; pyproject = true; disabled = pythonOlder "3.9"; src = fetchPypi { inherit pname version; - hash = "sha256-exBXPi3Ra2cC9W9WhYsl80/4HWsW5CmvCjsmbwdGru4="; + hash = "sha256-F9IHTs/ixWK/CGPefoOfrRTMZtX5gJB0HqqRjqv7+dU="; }; # Patch out gui cli because it is not supported in this packaging and @@ -32,7 +32,8 @@ buildPythonPackage rec { substituteInPlace setup.py \ --replace-fail '"trafilatura_gui=trafilatura.gui:main",' "" substituteInPlace tests/cli_tests.py \ - --replace-fail "trafilatura_bin = 'trafilatura'" "trafilatura_bin = '$out/bin/trafilatura'" + --replace-fail 'trafilatura_bin = "trafilatura"' \ + 'trafilatura_bin = "${placeholder "out"}/bin/trafilatura"' ''; build-system = [ setuptools ]; @@ -60,16 +61,17 @@ buildPythonPackage rec { "test_queue" "test_redirection" "test_whole" + "test_is_live_page" ]; pythonImportsCheck = [ "trafilatura" ]; - meta = with lib; { + meta = { description = "Python package and command-line tool designed to gather text on the Web"; homepage = "https://trafilatura.readthedocs.io"; changelog = "https://github.com/adbar/trafilatura/blob/v${version}/HISTORY.md"; - license = licenses.asl20; - maintainers = with maintainers; [ jokatzke ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ jokatzke ]; mainProgram = "trafilatura"; }; }