Files
nixpkgs/pkgs/development/python-modules/formbox/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

38 lines
801 B
Nix

{
lib,
buildPythonPackage,
pythonOlder,
fetchzip,
flit-core,
mistune,
nh3,
}:
buildPythonPackage rec {
pname = "formbox";
version = "1.0.0";
format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchzip {
url = "https://trong.loang.net/~cnx/formbox/snapshot/formbox-${version}.tar.gz";
hash = "sha256-YS0hkmEly7SXQvMIPLmqY89ux6E951twAy7iA3K+asA=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [
mistune
nh3
];
doCheck = false; # there's no test
pythonImportsCheck = [ "formbox" ];
meta = {
description = "Script to format mbox as HTML/XML";
mainProgram = "formbox";
homepage = "https://trong.loang.net/~cnx/formbox";
license = lib.licenses.agpl3Plus;
maintainers = [ lib.maintainers.McSinyx ];
};
}