Commit 004613a6 authored by Alyssa Ross's avatar Alyssa Ross
Browse files

mailmanPackages.hyperkitty: 1.3.8 -> 1.3.9

Doesn't seem to be out on PyPI yet, but they have a release tarball.

Hyperkitty has migrated to pyproject.toml, and no longer requires an
outdated version of mistune.  Yay!
parent 0216d40c
Loading
Loading
Loading
Loading
+14 −12
Original line number Diff line number Diff line
{ lib
, python3
, fetchPypi
, fetchurl
, nixosTests
}:

@@ -8,18 +8,19 @@ with python3.pkgs;

buildPythonPackage rec {
  pname = "HyperKitty";
  version = "1.3.8";
  version = "1.3.9";
  pyproject = true;

  disabled = pythonOlder "3.10";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-j//Mrbos/g1BGenHRmOe5GvAza5nu/mchAgdLQu9h7g=";
  src = fetchurl {
    url = "https://gitlab.com/mailman/hyperkitty/-/releases/${version}/downloads/hyperkitty-${version}.tar.gz";
    hash = "sha256-BfhCh4zZcfwoIfubW/+MUWXwh1yFOH/jpRdQdsj6lME=";
  };

  postPatch = ''
    # isort is a development dependency
    sed -i '/isort/d' setup.py
  '';
  nativeBuildInputs = [
    pdm-backend
  ];

  propagatedBuildInputs = [
    django
@@ -39,9 +40,10 @@ buildPythonPackage rec {
  ];

  # Some of these are optional runtime dependencies that are not
  # listed as dependencies in setup.py.  To use these, they should be
  # dependencies of the Django Python environment, but not of
  # HyperKitty so they're not included for people who don't need them.
  # listed as dependencies in pyproject.toml.  To use these, they
  # should be dependencies of the Django Python environment, but not
  # of HyperKitty so they're not included for people who don't need
  # them.
  nativeCheckInputs = [
    beautifulsoup4
    elastic-transport
+0 −9
Original line number Diff line number Diff line
@@ -18,15 +18,6 @@ python3.override {
        [1] 72a14ea563a3f5bf85db659349a533fe75a8b0ce
        [2] f931bc81d63f5cfda55ac73d754c87b3fd63b291
      */
      # https://gitlab.com/mailman/hyperkitty/-/merge_requests/541
      mistune = super.mistune.overridePythonAttrs (old: rec {
        version = "2.0.5";
        src = fetchPypi {
          inherit (old) pname;
          inherit version;
          hash = "sha256-AkYRPLJJLbh1xr5Wl0p8iTMzvybNkokchfYxUc7gnTQ=";
        };
      });

      # django-q tests fail with redis 5.0.0.
      # https://gitlab.com/mailman/hyperkitty/-/issues/493