Merge pull request #204903 from mweinelt/cpython-changelog

This commit is contained in:
Martin Weinelt 2022-12-08 01:14:19 +01:00 committed by GitHub
commit b818d8a9b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -507,7 +507,15 @@ in with passthru; stdenv.mkDerivation {
enableParallelBuilding = true; enableParallelBuilding = true;
meta = { meta = {
homepage = "http://python.org"; homepage = "https://www.python.org";
changelog = let
majorMinor = lib.versions.majorMinor version;
dashedVersion = lib.replaceStrings [ "." "a" ] [ "-" "-alpha-" ] version;
in
if sourceVersion.suffix == "" then
"https://docs.python.org/release/${version}/whatsnew/changelog.html"
else
"https://docs.python.org/${majorMinor}/whatsnew/changelog.html#python-${dashedVersion}";
description = "A high-level dynamically-typed programming language"; description = "A high-level dynamically-typed programming language";
longDescription = '' longDescription = ''
Python is a remarkably powerful dynamic programming language that Python is a remarkably powerful dynamic programming language that