summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/htmlmin/default.nix
blob: f528ef06fb4f9fd7f21ea569a9975570ef59779e (plain)
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,
  fetchPypi,
  setuptools,
  standard-cgi,
}:

buildPythonPackage rec {
  pname = "htmlmin";
  version = "0.1.12";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-UMHvRjA3Sl1yOQAJapYc/0Jt/0a0jzTRlKgbvhTsoXg=";
  };

  build-system = [
    setuptools
  ];

  dependencies = [
    standard-cgi
  ];

  # pypi tarball does not contain tests
  doCheck = false;

  meta = {
    description = "Configurable HTML Minifier with safety features";
    mainProgram = "htmlmin";
    homepage = "https://github.com/mankyd/htmlmin";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ nickcao ];
  };
}