mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
python312Packages.css-html-js-minify: refactor (#341810)
This commit is contained in:
commit
8219fad93d
@ -2,26 +2,36 @@
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
distutils,
|
||||
setuptools,
|
||||
pythonOlder,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "css-html-js-minify";
|
||||
version = "2.5.5";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "4a9f11f7e0496f5284d12111f3ba4ff5ff2023d12f15d195c9c48bd97013746c";
|
||||
hash = "sha256-Sp8R9+BJb1KE0SER87pP9f8gI9EvFdGVycSL2XATdGw=";
|
||||
};
|
||||
|
||||
doCheck = false; # Tests are useless and broken
|
||||
build-system = [
|
||||
distutils
|
||||
setuptools
|
||||
];
|
||||
|
||||
# Tests are useless and broken
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "css_html_js_minify" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "StandAlone Async cross-platform Minifier for the Web";
|
||||
mainProgram = "css-html-js-minify";
|
||||
homepage = "https://github.com/juancarlospaco/css-html-js-minify";
|
||||
license = with licenses; [
|
||||
gpl3Plus
|
||||
@ -29,5 +39,6 @@ buildPythonPackage rec {
|
||||
mit
|
||||
];
|
||||
maintainers = with maintainers; [ FlorianFranzen ];
|
||||
mainProgram = "css-html-js-minify";
|
||||
};
|
||||
}
|
||||
|
@ -7,14 +7,16 @@
|
||||
lxml,
|
||||
python-slugify,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
sphinx,
|
||||
unidecode,
|
||||
versioneer,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sphinx-material";
|
||||
version = "0.0.36";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
@ -24,7 +26,17 @@ buildPythonPackage rec {
|
||||
hash = "sha256-7v9ffT3AFq8yuv33DGbmcdFch1Tb4GE9+9Yp++2RKGk=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
postPatch = ''
|
||||
# Remove vendorized versioneer.py
|
||||
rm versioneer.py
|
||||
'';
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
versioneer
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
sphinx
|
||||
beautifulsoup4
|
||||
python-slugify
|
||||
@ -33,13 +45,15 @@ buildPythonPackage rec {
|
||||
lxml
|
||||
];
|
||||
|
||||
doCheck = false; # no tests
|
||||
# Module has no tests
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "sphinx_material" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "Material-based, responsive theme inspired by mkdocs-material";
|
||||
homepage = "https://bashtage.github.io/sphinx-material";
|
||||
changelog = "https://github.com/bashtage/sphinx-material/releases/tag/v${version}";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ FlorianFranzen ];
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user