python312Packages.sphinx-material: refactor

This commit is contained in:
Fabian Affolter
2024-09-14 13:44:25 +02:00
parent 302cf3818b
commit 36e343e8a1
@@ -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 ];
};