···11{ lib
22, python3
33-, fetchPypi
33+, fetchurl
44, nixosTests
55}:
66···8899buildPythonPackage rec {
1010 pname = "HyperKitty";
1111- version = "1.3.8";
1111+ version = "1.3.9";
1212+ pyproject = true;
1313+1214 disabled = pythonOlder "3.10";
13151414- src = fetchPypi {
1515- inherit pname version;
1616- hash = "sha256-j//Mrbos/g1BGenHRmOe5GvAza5nu/mchAgdLQu9h7g=";
1616+ src = fetchurl {
1717+ url = "https://gitlab.com/mailman/hyperkitty/-/releases/${version}/downloads/hyperkitty-${version}.tar.gz";
1818+ hash = "sha256-BfhCh4zZcfwoIfubW/+MUWXwh1yFOH/jpRdQdsj6lME=";
1719 };
18201919- postPatch = ''
2020- # isort is a development dependency
2121- sed -i '/isort/d' setup.py
2222- '';
2121+ nativeBuildInputs = [
2222+ pdm-backend
2323+ ];
23242425 propagatedBuildInputs = [
2526 django
···3940 ];
40414142 # Some of these are optional runtime dependencies that are not
4242- # listed as dependencies in setup.py. To use these, they should be
4343- # dependencies of the Django Python environment, but not of
4444- # HyperKitty so they're not included for people who don't need them.
4343+ # listed as dependencies in pyproject.toml. To use these, they
4444+ # should be dependencies of the Django Python environment, but not
4545+ # of HyperKitty so they're not included for people who don't need
4646+ # them.
4547 nativeCheckInputs = [
4648 beautifulsoup4
4749 elastic-transport