treewide replacement of stdenv.mkDerivation rec { name = "*-${version}"; version = "*"; to pname
Fixes #48544.
This is a minimal change mainly to make sure repology recognizes this package as sage. I plan a bit more refactoring later, but this is intentionally kept minimally invasive so that it won't break anything and can be backported to 18.09.