python313Packages.sacrebleu: 2.5.0 -> 2.5.1, refactor (#380295)

This commit is contained in:
Yt
2025-02-08 05:39:25 -05:00
committed by GitHub
@@ -3,6 +3,9 @@
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools-scm,
# Propagated build inputs
portalocker,
regex,
@@ -16,25 +19,22 @@
}:
let
pname = "sacrebleu";
version = "2.5.0";
version = "2.5.1";
in
buildPythonPackage {
inherit pname version;
format = "setuptools";
pyproject = true;
src = fetchFromGitHub {
owner = "mjpost";
repo = pname;
repo = "sacrebleu";
tag = "v${version}";
hash = "sha256-ErssNc8X376E26maGJo/P19CA7FDxZ4/h6mgRB+YNZc=";
hash = "sha256-nLZotWQLrN9hB1fBuDJkvGr4SMvQz8Ucl8ybpNhf9Ic=";
};
# postPatch = ''
# substituteInPlace setup.py \
# --replace "portalocker==" "portalocker>="
# '';
build-system = [ setuptools-scm ];
propagatedBuildInputs = [
dependencies = [
portalocker
regex
tabulate
@@ -43,7 +43,7 @@ buildPythonPackage {
lxml
];
checkInputs = [ pytestCheckHook ];
nativeCheckInputs = [ pytestCheckHook ];
disabledTestPaths = [
# require network access
@@ -57,12 +57,12 @@ buildPythonPackage {
pythonImportsCheck = [ "sacrebleu" ];
meta = with lib; {
meta = {
description = "Hassle-free computation of shareable, comparable, and reproducible BLEU, chrF, and TER scores";
mainProgram = "sacrebleu";
homepage = "https://github.com/mjpost/sacrebleu";
changelog = "https://github.com/mjpost/sacrebleu/blob/v{version}/CHANGELOG.md";
license = licenses.asl20;
maintainers = with maintainers; [ happysalada ];
changelog = "https://github.com/mjpost/sacrebleu/blob/v${version}/CHANGELOG.md";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ happysalada ];
};
}