1
0
forked from rosa/hakurei

internal/rosa/python: install pytest from source

Used by many python packages.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-04-19 23:17:38 +09:00
parent 20d5b71575
commit e8f6db38b6

View File

@@ -449,17 +449,30 @@ func init() {
} }
func init() { func init() {
artifactsM[PythonPyTest] = newPypi( const (
version = "9.0.3"
checksum = "qfLL_znWhbJCDbNJvrx9H3-orJ86z4ifhaW0bIn21jl2sDP-FVoX_1yieOypArQe"
)
artifactsM[PythonPyTest] = newPythonPackage(
"pytest", 3765, "pytest", 3765,
"the pytest framework", "the pytest framework",
"9.0.3", "py3", "none", "any", "https://pytest.org",
"57WLrIVOfyoRDjt5qD6LGOaDcDCtzQnKDSTUb7GzHyJDtry_nGHHs4-0tW0tiIJr", version, newFromGitHub(
"pytest-dev/pytest",
version, checksum,
), &PackageAttr{
Env: []string{
"SETUPTOOLS_SCM_PRETEND_VERSION_FOR_PYTEST=" + version,
},
}, nil, P{PythonSetuptoolsSCM},
PythonIniConfig, PythonIniConfig,
PythonPackaging, PythonPackaging,
PythonPluggy, PythonPluggy,
PythonPygments, PythonPygments,
) )
}
func init() {
artifactsM[PythonMarkupSafe] = newPypi( artifactsM[PythonMarkupSafe] = newPypi(
"markupsafe", 3918, "markupsafe", 3918,
"implements a text object that escapes characters so it is safe to use in HTML and XML", "implements a text object that escapes characters so it is safe to use in HTML and XML",