roman: 2.0.0 -> 5.2, modernize, adopt (#479531)

This commit is contained in:
Fernando Rodrigues
2026-01-20 01:37:07 +00:00
committed by GitHub
@@ -1,23 +1,37 @@
{
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;
maintainers = with lib.maintainers; [ sigmanificient ];
mainProgram = "roman";
};
}
})