2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
beautifulsoup4,
|
|
|
|
buildPythonPackage,
|
|
|
|
css-html-js-minify,
|
|
|
|
fetchPypi,
|
|
|
|
lxml,
|
|
|
|
python-slugify,
|
|
|
|
pythonOlder,
|
2024-09-19 14:19:46 +00:00
|
|
|
setuptools,
|
2024-06-05 15:53:02 +00:00
|
|
|
sphinx,
|
|
|
|
unidecode,
|
2024-09-19 14:19:46 +00:00
|
|
|
versioneer,
|
2021-04-25 03:57:28 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "sphinx-material";
|
2023-08-22 20:05:09 +00:00
|
|
|
version = "0.0.36";
|
2024-09-19 14:19:46 +00:00
|
|
|
pyproject = true;
|
2023-08-22 20:05:09 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
pname = "sphinx_material";
|
|
|
|
inherit version;
|
2023-08-22 20:05:09 +00:00
|
|
|
hash = "sha256-7v9ffT3AFq8yuv33DGbmcdFch1Tb4GE9+9Yp++2RKGk=";
|
2021-04-25 03:57:28 +00:00
|
|
|
};
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
postPatch = ''
|
|
|
|
# Remove vendorized versioneer.py
|
|
|
|
rm versioneer.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
build-system = [
|
|
|
|
setuptools
|
|
|
|
versioneer
|
|
|
|
];
|
|
|
|
|
|
|
|
dependencies = [
|
2021-04-25 03:57:28 +00:00
|
|
|
sphinx
|
|
|
|
beautifulsoup4
|
|
|
|
python-slugify
|
|
|
|
unidecode
|
|
|
|
css-html-js-minify
|
|
|
|
lxml
|
|
|
|
];
|
|
|
|
|
2024-09-19 14:19:46 +00:00
|
|
|
# Module has no tests
|
|
|
|
doCheck = false;
|
2021-04-25 03:57:28 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "sphinx_material" ];
|
2021-04-25 03:57:28 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
2024-06-20 14:57:18 +00:00
|
|
|
description = "Material-based, responsive theme inspired by mkdocs-material";
|
2021-04-25 03:57:28 +00:00
|
|
|
homepage = "https://bashtage.github.io/sphinx-material";
|
2024-09-19 14:19:46 +00:00
|
|
|
changelog = "https://github.com/bashtage/sphinx-material/releases/tag/v${version}";
|
2021-04-25 03:57:28 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ FlorianFranzen ];
|
|
|
|
};
|
|
|
|
}
|