From 3d0714cbb70ccdb4ee95d583fb626b177deb9400 Mon Sep 17 00:00:00 2001 From: emaryn Date: Wed, 14 May 2025 19:42:53 +0800 Subject: [PATCH] offpunk: 2.6 -> 2.7.1 --- pkgs/by-name/of/offpunk/package.nix | 52 ++++++++++++++--------------- 1 file changed, 25 insertions(+), 27 deletions(-) diff --git a/pkgs/by-name/of/offpunk/package.nix b/pkgs/by-name/of/offpunk/package.nix index 332f234839dd..2359e9a0ff91 100644 --- a/pkgs/by-name/of/offpunk/package.nix +++ b/pkgs/by-name/of/offpunk/package.nix @@ -1,38 +1,20 @@ { + lib, + python3Packages, fetchFromSourcehut, file, installShellFiles, less, - lib, offpunk, - python3Packages, testers, timg, xdg-utils, xsel, }: -let - pythonDependencies = with python3Packages; [ - beautifulsoup4 - chardet - cryptography - feedparser - readability-lxml - requests - setproctitle - ]; - otherDependencies = [ - file - less - timg - xdg-utils - xsel - ]; -in python3Packages.buildPythonApplication rec { pname = "offpunk"; - version = "2.6"; + version = "2.7.1"; pyproject = true; disabled = python3Packages.pythonOlder "3.7"; @@ -41,14 +23,30 @@ python3Packages.buildPythonApplication rec { owner = "~lioploum"; repo = "offpunk"; rev = "v${version}"; - hash = "sha256-bVWPmCs8vspW0leaNajEYy+c3WRRMzIB8b9nXDDB8tw="; + hash = "sha256-+Mbe1VLeF8Adf7bgVnbzvcWdPB4PXakCD9gO35jAYBY="; }; - nativeBuildInputs = [ - python3Packages.hatchling - installShellFiles - ]; - propagatedBuildInputs = otherDependencies ++ pythonDependencies; + build-system = with python3Packages; [ hatchling ]; + + nativeBuildInputs = [ installShellFiles ]; + + dependencies = + [ + file + less + timg + xdg-utils + xsel + ] + ++ (with python3Packages; [ + beautifulsoup4 + chardet + cryptography + feedparser + readability-lxml + requests + setproctitle + ]); postInstall = '' installManPage man/*.1