From 88e6037c74fca0f4e5db174001b468ac52ff3df5 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Wed, 3 Dec 2025 18:37:20 +0100 Subject: [PATCH] python3Packages.roman-numerals: rename from roman-numerals-py Untagged rename required for Sphinx 9.0. --- .../{roman-numerals-py => roman-numerals}/default.nix | 11 +++++++++-- pkgs/development/python-modules/sphinx/default.nix | 4 ++-- pkgs/top-level/python-aliases.nix | 1 + pkgs/top-level/python-packages.nix | 2 +- 4 files changed, 13 insertions(+), 5 deletions(-) rename pkgs/development/python-modules/{roman-numerals-py => roman-numerals}/default.nix (75%) diff --git a/pkgs/development/python-modules/roman-numerals-py/default.nix b/pkgs/development/python-modules/roman-numerals/default.nix similarity index 75% rename from pkgs/development/python-modules/roman-numerals-py/default.nix rename to pkgs/development/python-modules/roman-numerals/default.nix index 7324a776a861..0f93f3cc16b9 100644 --- a/pkgs/development/python-modules/roman-numerals-py/default.nix +++ b/pkgs/development/python-modules/roman-numerals/default.nix @@ -2,13 +2,14 @@ lib, buildPythonPackage, fetchFromGitHub, + fetchpatch, flit-core, pytestCheckHook, sphinx, }: buildPythonPackage rec { - pname = "roman-numerals-py"; + pname = "roman-numerals"; version = "3.1.0"; pyproject = true; @@ -19,6 +20,13 @@ buildPythonPackage rec { hash = "sha256-YLF09jYwXq48iMvmqbj/cocYJPp7RsCXzbN0DV9gpis="; }; + patches = [ + (fetchpatch { + url = "https://github.com/AA-Turner/roman-numerals/commit/cc8ec3aca53c9246965500f8fc14aee636fd5307.patch"; + hash = "sha256-zSnJ3DP0hdwhKkFzPWZGJNn1OzwLBF3W8Q6KzwX4Ap4="; + }) + ]; + postPatch = '' ls -lah cp LICENCE.rst python/ @@ -37,7 +45,6 @@ buildPythonPackage rec { homepage = "https://github.com/AA-Turner/roman-numerals/"; changelog = "https://github.com/AA-Turner/roman-numerals/blob/${src.tag}/CHANGES.rst"; license = lib.licenses.cc0; - mainProgram = "roman-numerals-py"; platforms = lib.platforms.all; }; } diff --git a/pkgs/development/python-modules/sphinx/default.nix b/pkgs/development/python-modules/sphinx/default.nix index b01a27cfb820..89b0fd56da36 100644 --- a/pkgs/development/python-modules/sphinx/default.nix +++ b/pkgs/development/python-modules/sphinx/default.nix @@ -18,7 +18,7 @@ packaging, pygments, requests, - roman-numerals-py, + roman-numerals, snowballstemmer, sphinxcontrib-applehelp, sphinxcontrib-devhelp, @@ -72,7 +72,7 @@ buildPythonPackage rec { packaging pygments requests - roman-numerals-py + roman-numerals snowballstemmer sphinxcontrib-applehelp sphinxcontrib-devhelp diff --git a/pkgs/top-level/python-aliases.nix b/pkgs/top-level/python-aliases.nix index 7035ea22f93a..8a80fe153f9b 100644 --- a/pkgs/top-level/python-aliases.nix +++ b/pkgs/top-level/python-aliases.nix @@ -449,6 +449,7 @@ mapAliases { retworkx = throw "'retworkx' has been renamed to/replaced by 'rustworkx'"; # Converted to throw 2025-10-29 rki-covid-parser = throw "rki-covid-parser has been removed because it is unmaintained and broken"; # added 2025-09-20 robotframework-tools = "'robotframework-tools' has been removed because it is unmaintained"; # Added 2026-01-19 + roman-numerals-py = roman-numerals; # added 2025-12-03 ROPGadget = throw "'ROPGadget' has been renamed to/replaced by 'ropgadget'"; # Converted to throw 2025-10-29 rtslib = throw "'rtslib' has been renamed to/replaced by 'rtslib-fb'"; # Converted to throw 2025-10-29 rtsp-to-webrtc = throw "rtsp-to-webrtc has been removed because it is unmaintained"; # added 2025-09-20 diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 52e6ffbfdc40..021e66679ec0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -16715,7 +16715,7 @@ self: super: with self; { roman = callPackage ../development/python-modules/roman { }; - roman-numerals-py = callPackage ../development/python-modules/roman-numerals-py { }; + roman-numerals = callPackage ../development/python-modules/roman-numerals { }; romy = callPackage ../development/python-modules/romy { };