1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 distutils,
6 setuptools,
7 pythonOlder,
8}:
9
10buildPythonPackage rec {
11 pname = "css-html-js-minify";
12 version = "2.5.5";
13 pyproject = true;
14
15 disabled = pythonOlder "3.9";
16
17 src = fetchPypi {
18 inherit pname version;
19 extension = "zip";
20 hash = "sha256-Sp8R9+BJb1KE0SER87pP9f8gI9EvFdGVycSL2XATdGw=";
21 };
22
23 build-system = [
24 distutils
25 setuptools
26 ];
27
28 # Tests are useless and broken
29 doCheck = false;
30
31 pythonImportsCheck = [ "css_html_js_minify" ];
32
33 meta = with lib; {
34 description = "StandAlone Async cross-platform Minifier for the Web";
35 homepage = "https://github.com/juancarlospaco/css-html-js-minify";
36 license = with licenses; [
37 gpl3Plus
38 lgpl3Plus
39 mit
40 ];
41 maintainers = with maintainers; [ FlorianFranzen ];
42 mainProgram = "css-html-js-minify";
43 };
44}