From 9a317eb99391f9575d235c5bd26d293d01230559 Mon Sep 17 00:00:00 2001 From: Torben Schweren Date: Mon, 23 Jun 2025 22:51:09 +0200 Subject: [PATCH] nhentai: 0.5.3 -> 0.5.25 --- pkgs/by-name/nh/nhentai/package.nix | 55 +++++++++++++++++++++++------ 1 file changed, 45 insertions(+), 10 deletions(-) diff --git a/pkgs/by-name/nh/nhentai/package.nix b/pkgs/by-name/nh/nhentai/package.nix index f025aab0b51b..be50623cdefc 100644 --- a/pkgs/by-name/nh/nhentai/package.nix +++ b/pkgs/by-name/nh/nhentai/package.nix @@ -1,32 +1,67 @@ { lib, - python3Packages, + python3, fetchFromGitHub, + fetchPypi, }: -python3Packages.buildPythonApplication rec { +let + python = + let + packageOverrides = self: super: { + iso8601 = super.iso8601.overridePythonAttrs (old: rec { + version = "1.1.0"; + src = fetchPypi { + pname = "iso8601"; + inherit version; + hash = "sha256-MoEee4He7iBj6m0ulPiBmobR84EeSdI2I6QfqDK+8D8="; + }; + }); + urllib3 = super.urllib3.overridePythonAttrs (old: rec { + version = "1.26.20"; + src = fetchPypi { + pname = "urllib3"; + inherit version; + hash = "sha256-QMLcDGgeR+uPkOfie/b/ffLmd0If1GdW2hFhw5ynDTI="; + }; + }); + }; + in + python3.override { + inherit packageOverrides; + self = python; + }; + +in +python.pkgs.buildPythonApplication rec { pname = "nhentai"; - version = "0.5.3"; - format = "setuptools"; + version = "0.5.25"; src = fetchFromGitHub { owner = "RicterZ"; repo = "nhentai"; rev = version; - hash = "sha256-SjWIctAyczjYGP4buXQBA/RcrdikMSuSBtfhORNmXMc="; + hash = "sha256-KwcaCeeGeR6qSfraSYyf4VEims9YWB6j3HmpT8XSePo="; }; # tests require a network connection doCheck = false; - propagatedBuildInputs = with python3Packages; [ + pyproject = true; + + build-system = with python.pkgs; [ + poetry-core + ]; + + dependencies = with python.pkgs; [ requests - img2pdf - iso8601 - beautifulsoup4 soupsieve + beautifulsoup4 tabulate - future + iso8601 + urllib3 + httpx + chardet ]; meta = {