From c9994406a8c9fbca30203bb29a22917dc23c97ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Fri, 20 Mar 2026 10:54:45 -0700 Subject: [PATCH 1/3] python3Packages.podcats: fix build failure the package has been updated to v0.6.x in e007b522b8e9b2770289b501b5c5b5f6ecc1964e. the patch should have been updated to substitute in podcats/__init__.py, as it was interacting with a moved file, and the dependency `humanize` was also missing. i am not sure why the patch was even needed, so I just removed it. --- pkgs/development/python-modules/podcats/default.nix | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/podcats/default.nix b/pkgs/development/python-modules/podcats/default.nix index 6f2ed525f0e5..30a68cafde42 100644 --- a/pkgs/development/python-modules/podcats/default.nix +++ b/pkgs/development/python-modules/podcats/default.nix @@ -4,6 +4,7 @@ fetchFromGitHub, setuptools, flask, + humanize, mutagen, }: @@ -19,15 +20,11 @@ buildPythonPackage rec { sha256 = "sha256-1Jg9bR/3qMim3q5qVwUVbxeLNaXaCU6SplBUaRXeLpo="; }; - postPatch = '' - substituteInPlace podcats.py \ - --replace-fail 'debug=True' 'debug=True, use_reloader=False' - ''; - build-system = [ setuptools ]; dependencies = [ flask + humanize mutagen ]; From a57bd118815002792c2c9cd54ac811b17af6c0c5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Fri, 20 Mar 2026 11:00:33 -0700 Subject: [PATCH 2/3] python3Packages.podcats: adopt --- pkgs/development/python-modules/podcats/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/python-modules/podcats/default.nix b/pkgs/development/python-modules/podcats/default.nix index 30a68cafde42..64e9c11c9859 100644 --- a/pkgs/development/python-modules/podcats/default.nix +++ b/pkgs/development/python-modules/podcats/default.nix @@ -33,5 +33,6 @@ buildPythonPackage rec { mainProgram = "podcats"; homepage = "https://github.com/jakubroztocil/podcats"; license = lib.licenses.bsd2; + maintainers = with lib.maintainers; [ drawbu ]; }; } From 509366436f9dc5acfb9c93a5d40256501e3cfd39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment?= Date: Fri, 20 Mar 2026 10:58:11 -0700 Subject: [PATCH 3/3] python3Packages.podcats: modernize - replace `rec` with `finalAttrs` - sort inputs - change repository owner to `jkbrzt` since the repository was redirecting --- .../python-modules/podcats/default.nix | 21 +++++++++++-------- 1 file changed, 12 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/podcats/default.nix b/pkgs/development/python-modules/podcats/default.nix index 64e9c11c9859..279723394fb8 100644 --- a/pkgs/development/python-modules/podcats/default.nix +++ b/pkgs/development/python-modules/podcats/default.nix @@ -1,23 +1,23 @@ { - lib, buildPythonPackage, fetchFromGitHub, - setuptools, flask, humanize, + lib, mutagen, + setuptools, }: -buildPythonPackage rec { +buildPythonPackage (finalAttrs: { pname = "podcats"; version = "0.6.3"; pyproject = true; src = fetchFromGitHub { - owner = "jakubroztocil"; + owner = "jkbrzt"; repo = "podcats"; - tag = version; - sha256 = "sha256-1Jg9bR/3qMim3q5qVwUVbxeLNaXaCU6SplBUaRXeLpo="; + tag = finalAttrs.version; + hash = "sha256-1Jg9bR/3qMim3q5qVwUVbxeLNaXaCU6SplBUaRXeLpo="; }; build-system = [ setuptools ]; @@ -28,11 +28,14 @@ buildPythonPackage rec { mutagen ]; + pythonImportsCheck = [ "podcats" ]; + doCheck = false; + meta = { - description = "Application that generates RSS feeds for podcast episodes from local audio files"; + description = "Generates RSS feeds for podcast episodes from local audio files"; mainProgram = "podcats"; - homepage = "https://github.com/jakubroztocil/podcats"; + homepage = "https://github.com/jkbrzt/podcats"; license = lib.licenses.bsd2; maintainers = with lib.maintainers; [ drawbu ]; }; -} +})