From 77c53d75e67d5fb0247b9dbf4b9ac54cd7757fcb Mon Sep 17 00:00:00 2001 From: Sigmanificient Date: Tue, 13 Jan 2026 01:29:31 +0100 Subject: [PATCH] roman: 2.0.0 -> 5.2 --- .../python-modules/roman/default.nix | 31 +++++++++++++------ 1 file changed, 22 insertions(+), 9 deletions(-) diff --git a/pkgs/development/python-modules/roman/default.nix b/pkgs/development/python-modules/roman/default.nix index 074b2108094e..b5f0a2ce1615 100644 --- a/pkgs/development/python-modules/roman/default.nix +++ b/pkgs/development/python-modules/roman/default.nix @@ -1,23 +1,36 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, + setuptools, + pytestCheckHook, }: -buildPythonPackage rec { - version = "2.0.0"; - format = "setuptools"; +buildPythonPackage (finalAttrs: { + version = "5.2"; pname = "roman"; + pyproject = true; - src = fetchPypi { - inherit pname version; - extension = "zip"; - sha256 = "90e83b512b44dd7fc83d67eb45aa5eb707df623e6fc6e66e7f273abd4b2613ae"; + src = fetchFromGitHub { + owner = "zopefoundation"; + repo = "roman"; + tag = finalAttrs.version; + hash = "sha256-ZtwHlS3V18EqDXJxTTwfUdtOvyQg9GbSArV7sOs1b38="; }; + build-system = [ setuptools ]; + + pythonImportsCheck = [ "roman" ]; + + nativeCheckInputs = [ pytestCheckHook ]; + + enabledTestPaths = [ "src/tests.py" ]; + meta = { description = "Integer to Roman numerals converter"; + changelog = "https://github.com/zopefoundation/roman/blob/${finalAttrs.version}/CHANGES.rst"; homepage = "https://pypi.python.org/pypi/roman"; license = lib.licenses.psfl; + mainProgram = "roman"; }; -} +})