summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/sphinx-material/default.nix
blob: a1ca6749f94276986fb41b34599dc62e290bc8b5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
{
  lib,
  beautifulsoup4,
  buildPythonPackage,
  css-html-js-minify,
  fetchPypi,
  lxml,
  python-slugify,
  setuptools,
  sphinx,
  unidecode,
  versioneer,
}:

buildPythonPackage rec {
  pname = "sphinx-material";
  version = "0.0.36";
  pyproject = true;

  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 = {
    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 = lib.licenses.mit;
    maintainers = with lib.maintainers; [ FlorianFranzen ];
  };
}