159e378cbb
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
60 lines
1.1 KiB
Nix
60 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
beautifulsoup4,
|
|
buildPythonPackage,
|
|
css-html-js-minify,
|
|
fetchPypi,
|
|
lxml,
|
|
python-slugify,
|
|
pythonOlder,
|
|
setuptools,
|
|
sphinx,
|
|
unidecode,
|
|
versioneer,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "sphinx-material";
|
|
version = "0.0.36";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "sphinx_material";
|
|
inherit version;
|
|
hash = "sha256-7v9ffT3AFq8yuv33DGbmcdFch1Tb4GE9+9Yp++2RKGk=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# Remove vendorized versioneer.py
|
|
rm versioneer.py
|
|
'';
|
|
|
|
build-system = [
|
|
setuptools
|
|
versioneer
|
|
];
|
|
|
|
dependencies = [
|
|
sphinx
|
|
beautifulsoup4
|
|
python-slugify
|
|
unidecode
|
|
css-html-js-minify
|
|
lxml
|
|
];
|
|
|
|
# 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 ];
|
|
};
|
|
}
|