about summary refs log tree commit diff
path: root/pkgs/development/python-modules/formbox/default.nix
blob: a67216ebf30f2336aae77aeca48a873ffa664710 (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
27
28
29
30
31
32
33
34
35
36
37
{
  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 = with lib; {
    description = "Script to format mbox as HTML/XML";
    mainProgram = "formbox";
    homepage = "https://trong.loang.net/~cnx/formbox";
    license = licenses.agpl3Plus;
    maintainers = [ maintainers.McSinyx ];
  };
}