2023-11-16 04:20:00 +00:00
|
|
|
{ lib, buildPythonPackage, pythonOlder, fetchzip, flit-core, mistune, nh3 }:
|
2021-12-30 13:39:12 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "formbox";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.4.3";
|
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
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
src = fetchzip {
|
|
|
|
url = "https://trong.loang.net/~cnx/formbox/snapshot/formbox-${version}.tar.gz";
|
|
|
|
hash = "sha256-sRu0otyeYpxot/Fyiz3wyQJsJvl8nsgIVitzT8frxLE=";
|
2021-12-30 13:39:12 +00:00
|
|
|
};
|
|
|
|
|
2023-10-09 19:29:22 +00:00
|
|
|
nativeBuildInputs = [ flit-core ];
|
2023-11-16 04:20:00 +00:00
|
|
|
propagatedBuildInputs = [ mistune nh3 ];
|
2021-12-30 13:39:12 +00:00
|
|
|
doCheck = false; # there's no test
|
|
|
|
pythonImportsCheck = [ "formbox" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A script to format mbox as HTML/XML";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "formbox";
|
2023-11-16 04:20:00 +00:00
|
|
|
homepage = "https://trong.loang.net/~cnx/formbox";
|
2021-12-30 13:39:12 +00:00
|
|
|
license = licenses.agpl3Plus;
|
|
|
|
maintainers = [ maintainers.McSinyx ];
|
|
|
|
};
|
|
|
|
}
|