Gaetan Lepage
2026-08-04 08:13:43 +00:00
parent fe38f663cd
commit 64dbb96f60
+9 -16
View File
@@ -1,34 +1,29 @@
{
lib,
python3Packages,
python313Packages,
fetchFromGitHub,
fetchpatch2,
writableTmpDirAsHomeHook,
versionCheckHook,
}:
let
python3Packages = python313Packages;
in
python3Packages.buildPythonApplication (finalAttrs: {
pname = "babeldoc";
version = "0.5.22";
version = "0.6.4";
pyproject = true;
src = fetchFromGitHub {
owner = "funstory-ai";
repo = "BabelDOC";
tag = "v${finalAttrs.version}";
hash = "sha256-ArLTv5AjpUdbsN8bQs03ATwg5ugXetld2FmHhicU8OE=";
hash = "sha256-eYCIXMYOJPGReDFkFdxgrhpkAG/pA14v3Si+5unfXz4=";
};
patches = [
(fetchpatch2 {
name = "rename-python-levenshtein-to-levenshtein";
url = "https://github.com/funstory-ai/BabelDOC/pull/542.patch?full_index=1";
hash = "sha256-rjXhKVFivkJo54WdYiihqB3lrlu4YEwVZZkE4WBatWs=";
})
build-system = with python3Packages; [
hatchling
];
build-system = with python3Packages; [ hatchling ];
dependencies =
with python3Packages;
[
@@ -72,12 +67,10 @@ python3Packages.buildPythonApplication (finalAttrs: {
pythonImportsCheck = [ "babeldoc" ];
# Upstream dropped its test suite in 0.6.0
nativeCheckInputs = [
writableTmpDirAsHomeHook
python3Packages.pytestCheckHook
versionCheckHook
];
versionCheckKeepEnvironment = "HOME";
meta = {
description = "PDF scientific paper translation and bilingual comparison library";