python3Packages.docutils: Various minor updates/modernization

This commit is contained in:
Johan Herland
2025-07-14 10:35:01 +00:00
parent de056b7fcc
commit ddc45de27b

View File

@@ -17,8 +17,6 @@ let
version = "0.21.2"; version = "0.21.2";
pyproject = true; pyproject = true;
disabled = pythonOlder "3.7";
src = fetchurl { src = fetchurl {
url = "mirror://sourceforge/docutils/docutils-${version}.tar.gz"; url = "mirror://sourceforge/docutils/docutils-${version}.tar.gz";
hash = "sha256-OmsYcy7fGC2qPNEndbuzOM9WkUaPke7rEJ3v9uv6mG8="; hash = "sha256-OmsYcy7fGC2qPNEndbuzOM9WkUaPke7rEJ3v9uv6mG8=";
@@ -33,7 +31,9 @@ let
nativeCheckInputs = [ pillow ]; nativeCheckInputs = [ pillow ];
checkPhase = '' checkPhase = ''
runHook preCheck
${python.interpreter} test/alltests.py ${python.interpreter} test/alltests.py
runHook postCheck
''; '';
# Create symlinks lacking a ".py" suffix, many programs depend on these names # Create symlinks lacking a ".py" suffix, many programs depend on these names
@@ -43,16 +43,20 @@ let
done done
''; '';
meta = with lib; { pythonImportsCheck = [ "docutils" ];
meta = {
description = "Python Documentation Utilities"; description = "Python Documentation Utilities";
homepage = "http://docutils.sourceforge.net/"; homepage = "http://docutils.sourceforge.net/";
license = with licenses; [ changelog = "https://sourceforge.net/projects/docutils/files/docutils/${version}";
license = with lib.licenses; [
publicDomain publicDomain
bsd2 bsd2
psfl psfl
gpl3Plus gpl3Plus
]; ];
maintainers = with maintainers; [ jherland ]; maintainers = with lib.maintainers; [ jherland ];
mainProgram = "docutils";
}; };
}; };
in in