Unverified Commit 6275bd8e authored by Yohann Boniface's avatar Yohann Boniface Committed by GitHub
Browse files

python314Packages.nikola: fix build (#501982)

parents 56ac37aa c1359830
Loading
Loading
Loading
Loading
+18 −0
Original line number Diff line number Diff line
@@ -7,6 +7,7 @@
  docutils,
  doit,
  feedparser,
  fetchpatch,
  fetchPypi,
  freezegun,
  ghp-import,
@@ -34,6 +35,7 @@
  requests,
  ruamel-yaml,
  setuptools,
  stdenv,
  toml,
  typogrify,
  unidecode,
@@ -51,6 +53,15 @@ buildPythonPackage rec {
    hash = "sha256-Y219b/wqsk9MJknoaV+LtWBOMJFT6ktgt4b6yuA6scc=";
  };

  patches = [
    # Upstream PR: https://github.com/getnikola/nikola/pull/3878
    (fetchpatch {
      name = "python-3.14.patch";
      url = "https://github.com/getnikola/nikola/commit/635366b64149055844f2d2ef6070b456bd4ba245.patch";
      hash = "sha256-TmrYHEIvC8ZKngBJnnKcyU5S4kjzIjLk7KKm72hXx1A=";
    })
  ];

  build-system = [ setuptools ];

  dependencies = [
@@ -106,6 +117,13 @@ buildPythonPackage rec {
    "test_format_date_locale_variants"
  ];

  disabledTestPaths = lib.optionals stdenv.hostPlatform.isDarwin [
    # Segfault in darwin sandbox via watchdog
    "tests/integration/test_dev_server_auto.py::test_serves_root_dir"
  ];

  __darwinAllowLocalNetworking = true;

  pythonImportsCheck = [ "nikola" ];

  meta = {