Skip to content

Commit b8f128c

Browse files
python3Packages.minify-html: init at 0.15.0 (#388756)
2 parents 20eba03 + 282fbbe commit b8f128c

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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 { };

0 commit comments

Comments
 (0)