2023-10-09 19:29:22 +00:00
|
|
|
{ lib, buildPythonPackage, pythonOlder, fetchFromSourcehut, flit-core, bleach, markdown }:
|
2021-12-30 13:39:12 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "formbox";
|
2022-01-25 03:21:06 +00:00
|
|
|
version = "0.4.1";
|
2023-10-09 19:29:22 +00:00
|
|
|
format = "pyproject";
|
2022-01-13 20:06:32 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2021-12-30 13:39:12 +00:00
|
|
|
|
|
|
|
src = fetchFromSourcehut {
|
|
|
|
owner = "~cnx";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-zOvXmSeBiwc0Z5mRMwMsHLU3A/iP7rpjXm0T0I2gUTk=";
|
2021-12-30 13:39:12 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeBuildInputs = [ flit-core ];
|
2021-12-30 13:39:12 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|