File tree Expand file tree Collapse file tree 2 files changed +43
-0
lines changed
development/python-modules/minify-html Expand file tree Collapse file tree 2 files changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ {
2+ buildPythonPackage ,
3+ fetchPypi ,
4+ lib ,
5+ rustPlatform ,
6+ } :
7+
8+ buildPythonPackage rec {
9+ pname = "minify-html" ;
10+ version = "0.15.0" ;
11+
12+ pyproject = true ;
13+
14+ # Fetching from Pypi, because there is no Cargo.lock in the GitHub repo.
15+ src = fetchPypi {
16+ inherit version ;
17+ pname = "minify_html" ;
18+ hash = "sha256-z0w2tvmvOwkBvSoKKds7CcDN8MONPd4o5oNbzg9gXTc=" ;
19+ } ;
20+
21+ cargoDeps = rustPlatform . fetchCargoVendor {
22+ inherit src ;
23+ name = "${ pname } -${ version } " ;
24+ hash = "sha256-f93gKKQRkjxQJ49EK/0UI+BzFEa6iSfDX/0gNysSDmc=" ;
25+ } ;
26+
27+ nativeBuildInputs = with rustPlatform ; [
28+ cargoSetupHook
29+ maturinBuildHook
30+ ] ;
31+
32+ pythonImportsCheck = [ "minify_html" ] ;
33+
34+ meta = {
35+ description = "Extremely fast and smart HTML + JS + CSS minifier" ;
36+ homepage = "https://github.com/wilsonzlin/minify-html/tree/master/minify-html-python" ;
37+ changelog = "https://github.com/wilsonzlin/minify-html/blob/v${ version } /CHANGELOG.md" ;
38+ license = lib . licenses . mit ;
39+ maintainers = lib . teams . apm . members ;
40+ } ;
41+ }
Original file line number Diff line number Diff line change @@ -8413,6 +8413,8 @@ self: super: with self; {
84138413
84148414 miniful = callPackage ../development/python-modules/miniful { };
84158415
8416+ minify-html = callPackage ../development/python-modules/minify-html { };
8417+
84168418 minikanren = callPackage ../development/python-modules/minikanren { };
84178419
84188420 minikerberos = callPackage ../development/python-modules/minikerberos { };
You can’t perform that action at this time.
0 commit comments