hotdoc: 0.15 -> 0.17.4

This commit is contained in:
Martin Weinelt
2025-05-23 08:37:22 -07:00
committed by Robert Schütz
parent 281143fda6
commit fea291d42a
+15 -13
View File
@@ -2,16 +2,17 @@
lib,
stdenv,
buildPythonApplication,
fetchpatch,
fetchPypi,
pytestCheckHook,
pkg-config,
cmake,
clang,
flex,
glib,
json-glib,
libxml2,
appdirs,
backports-entry-points-selectable,
dbus-deviation,
faust-cchardet,
feedgen,
@@ -29,21 +30,15 @@
buildPythonApplication rec {
pname = "hotdoc";
version = "0.15";
format = "setuptools";
version = "0.17.4";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-sfQ/iBd1Z+YqnaOg8j32rC2iucdiiK3Tff9NfYFnQyc=";
hash = "sha256-xNXf9kfwOqh6HS0GA10oGe3QmbkWNeOy7jkIKTV66fw=";
};
patches = [
(fetchpatch {
name = "fix-test-hotdoc.patch";
url = "https://github.com/hotdoc/hotdoc/commit/d2415a520e960a7b540742a0695b699be9189540.patch";
hash = "sha256-9ORZ91c+/oRqEp2EKXjKkz7u8mLnWCq3uPsc3G4NB9E=";
})
];
build-system = [ setuptools ];
nativeBuildInputs = [
pkg-config
@@ -57,8 +52,9 @@ buildPythonApplication rec {
libxml2.dev
];
propagatedBuildInputs = [
dependencies = [
appdirs
backports-entry-points-selectable
dbus-deviation
faust-cchardet
feedgen
@@ -73,6 +69,7 @@ buildPythonApplication rec {
];
nativeCheckInputs = [
clang
pytestCheckHook
];
@@ -86,8 +83,13 @@ buildPythonApplication rec {
"hotdoc.extensions.gst.gst_extension"
];
# Run the tests by package instead of current dir
pytestFlagsArray = [
# Executing hotdoc exits with code 1
"--deselect tests/test_hotdoc.py::TestHotdoc::test_basic"
"--deselect tests/test_hotdoc.py::TestHotdoc::test_explicit_conf_file"
"--deselect tests/test_hotdoc.py::TestHotdoc::test_implicit_conf_file"
"--deselect tests/test_hotdoc.py::TestHotdoc::test_private_folder"
# Run the tests by package instead of current dir
"--pyargs"
"hotdoc"
];