Merge pull request #120057 from FlorianFranzen/sphinx-material
This commit is contained in:
commit
1307cbca11
4 changed files with 73 additions and 0 deletions
|
@ -0,0 +1,26 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "css-html-js-minify";
|
||||
version = "2.5.5";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
extension = "zip";
|
||||
sha256 = "4a9f11f7e0496f5284d12111f3ba4ff5ff2023d12f15d195c9c48bd97013746c";
|
||||
};
|
||||
|
||||
doCheck = false; # Tests are useless and broken
|
||||
|
||||
pythonImportsCheck = [ "css_html_js_minify" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "StandAlone Async cross-platform Minifier for the Web";
|
||||
homepage = "https://github.com/juancarlospaco/css-html-js-minify";
|
||||
license = with licenses; [ gpl3Plus lgpl3Plus mit ];
|
||||
maintainers = with maintainers; [ FlorianFranzen ];
|
||||
};
|
||||
}
|
41
pkgs/development/python-modules/sphinx-material/default.nix
Normal file
41
pkgs/development/python-modules/sphinx-material/default.nix
Normal file
|
@ -0,0 +1,41 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, sphinx
|
||||
, beautifulsoup4
|
||||
, python-slugify
|
||||
, unidecode
|
||||
, css-html-js-minify
|
||||
, lxml
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "sphinx-material";
|
||||
version = "0.0.32";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "sphinx_material";
|
||||
inherit version;
|
||||
sha256 = "ec02825a1bbe8b662fe624c11b87f1cd8d40875439b5b18c38649cf3366201fa";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
sphinx
|
||||
beautifulsoup4
|
||||
python-slugify
|
||||
unidecode
|
||||
css-html-js-minify
|
||||
lxml
|
||||
];
|
||||
|
||||
doCheck = false; # no tests
|
||||
|
||||
pythonImportsCheck = [ "sphinx_material" ];
|
||||
|
||||
meta = with lib; {
|
||||
description = "A material-based, responsive theme inspired by mkdocs-material";
|
||||
homepage = "https://bashtage.github.io/sphinx-material";
|
||||
license = licenses.mit;
|
||||
maintainers = with maintainers; [ FlorianFranzen ];
|
||||
};
|
||||
}
|
|
@ -12644,6 +12644,8 @@ in
|
|||
|
||||
csslint = callPackage ../development/web/csslint { };
|
||||
|
||||
css-html-js-minify = with python3Packages; toPythonApplication css-html-js-minify;
|
||||
|
||||
cvise = python3Packages.callPackage ../development/tools/misc/cvise {
|
||||
inherit (llvmPackages_11) llvm clang-unwrapped;
|
||||
};
|
||||
|
|
|
@ -1631,6 +1631,8 @@ in {
|
|||
|
||||
cssmin = callPackage ../development/python-modules/cssmin { };
|
||||
|
||||
css-html-js-minify = callPackage ../development/python-modules/css-html-js-minify { };
|
||||
|
||||
css-parser = callPackage ../development/python-modules/css-parser { };
|
||||
|
||||
cssselect2 = callPackage ../development/python-modules/cssselect2 { };
|
||||
|
@ -8100,6 +8102,8 @@ in {
|
|||
|
||||
sphinx-jinja = callPackage ../development/python-modules/sphinx-jinja { };
|
||||
|
||||
sphinx-material = callPackage ../development/python-modules/sphinx-material { };
|
||||
|
||||
sphinx-navtree = callPackage ../development/python-modules/sphinx-navtree { };
|
||||
|
||||
sphinx_pypi_upload = callPackage ../development/python-modules/sphinx_pypi_upload { };
|
||||
|
|
Loading…
Reference in a new issue