about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/formbox/default.nix
blob: d099b7454544aed5162762311fe3ee7ceeab3666 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
{ lib, buildPythonPackage, pythonOlder, fetchFromSourcehut, bleach, markdown }:

buildPythonPackage rec {
  pname = "formbox";
  version = "0.1.0";
  format = "flit";
  disabled = pythonOlder "3.7";

  src = fetchFromSourcehut {
    owner = "~cnx";
    repo = pname;
    rev = version;
    sha256 = "sha256-6OzmYqUC3mmrAMeMExI4rdVGUoWrxRuBfjKFYbHUlgE=";
  };

  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 ];
  };
}