roman: 2.0.0 -> 5.2

This commit is contained in:
Sigmanificient
2026-01-13 01:39:38 +01:00
parent 6c1a443d51
commit 77c53d75e6
@@ -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";
};
}
})