2021-12-29 15:21:08 +01:00
|
|
|
{ lib, buildPythonPackage, pythonOlder, fetchFromSourcehut, bleach, markdown }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "formbox";
|
2022-01-21 12:24:15 +01:00
|
|
|
version = "0.4.1";
|
2021-12-29 15:21:08 +01:00
|
|
|
format = "flit";
|
2022-01-08 09:44:17 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
2021-12-29 15:21:08 +01:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~cnx";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2022-01-21 12:24:15 +01:00
|
|
|
sha256 = "sha256-zOvXmSeBiwc0Z5mRMwMsHLU3A/iP7rpjXm0T0I2gUTk=";
|
2021-12-29 15:21:08 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ bleach markdown ];
|
|
|
|
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";
|
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
maintainers = [ maintainers.McSinyx ];
|
|
|
|
};
|
|
|
|
}
|