diff --git a/pkgs/development/python-modules/formbox/default.nix b/pkgs/development/python-modules/formbox/default.nix index 098d13e87c98..418cd3d958cd 100644 --- a/pkgs/development/python-modules/formbox/default.nix +++ b/pkgs/development/python-modules/formbox/default.nix @@ -1,26 +1,24 @@ -{ lib, buildPythonPackage, pythonOlder, fetchFromSourcehut, flit-core, bleach, markdown }: +{ lib, buildPythonPackage, pythonOlder, fetchzip, flit-core, mistune, nh3 }: buildPythonPackage rec { pname = "formbox"; - version = "0.4.1"; + version = "0.4.3"; format = "pyproject"; disabled = pythonOlder "3.6"; - src = fetchFromSourcehut { - owner = "~cnx"; - repo = pname; - rev = version; - hash = "sha256-zOvXmSeBiwc0Z5mRMwMsHLU3A/iP7rpjXm0T0I2gUTk="; + src = fetchzip { + url = "https://trong.loang.net/~cnx/formbox/snapshot/formbox-${version}.tar.gz"; + hash = "sha256-sRu0otyeYpxot/Fyiz3wyQJsJvl8nsgIVitzT8frxLE="; }; nativeBuildInputs = [ flit-core ]; - propagatedBuildInputs = [ bleach markdown ]; + propagatedBuildInputs = [ mistune nh3 ]; doCheck = false; # there's no test pythonImportsCheck = [ "formbox" ]; meta = with lib; { description = "A script to format mbox as HTML/XML"; - homepage = "https://sr.ht/~cnx/formbox"; + homepage = "https://trong.loang.net/~cnx/formbox"; license = licenses.agpl3Plus; maintainers = [ maintainers.McSinyx ]; };