nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 beautifulsoup4,
4 buildPythonPackage,
5 css-html-js-minify,
6 fetchPypi,
7 lxml,
8 python-slugify,
9 setuptools,
10 sphinx,
11 unidecode,
12 versioneer,
13}:
14
15buildPythonPackage rec {
16 pname = "sphinx-material";
17 version = "0.0.36";
18 pyproject = true;
19
20 src = fetchPypi {
21 pname = "sphinx_material";
22 inherit version;
23 hash = "sha256-7v9ffT3AFq8yuv33DGbmcdFch1Tb4GE9+9Yp++2RKGk=";
24 };
25
26 postPatch = ''
27 # Remove vendorized versioneer.py
28 rm versioneer.py
29 '';
30
31 build-system = [
32 setuptools
33 versioneer
34 ];
35
36 dependencies = [
37 sphinx
38 beautifulsoup4
39 python-slugify
40 unidecode
41 css-html-js-minify
42 lxml
43 ];
44
45 # Module has no tests
46 doCheck = false;
47
48 pythonImportsCheck = [ "sphinx_material" ];
49
50 meta = {
51 description = "Material-based, responsive theme inspired by mkdocs-material";
52 homepage = "https://bashtage.github.io/sphinx-material";
53 changelog = "https://github.com/bashtage/sphinx-material/releases/tag/v${version}";
54 license = lib.licenses.mit;
55 maintainers = with lib.maintainers; [ FlorianFranzen ];
56 };
57}