1{
2 lib,
3 fetchFromGitHub,
4 gitUpdater,
5 buildPythonPackage,
6 setuptools,
7 beautifulsoup4,
8 gitpython,
9 pydata-sphinx-theme,
10 pygithub,
11 sphinx,
12 breathe,
13 myst-nb,
14 myst-parser,
15 sphinx-book-theme,
16 sphinx-copybutton,
17 sphinx-design,
18 sphinx-external-toc,
19 sphinx-notfound-page,
20 pyyaml,
21 fastjsonschema,
22}:
23
24# FIXME: Move to rocmPackages_common
25buildPythonPackage rec {
26 pname = "rocm-docs-core";
27 version = "1.17.0";
28 format = "pyproject";
29
30 src = fetchFromGitHub {
31 owner = "ROCm";
32 repo = "rocm-docs-core";
33 rev = "v${version}";
34 hash = "sha256-fGRJyQq0Eook1Dc9Qy+dehQ5BVNX+6pkkFN9adb21Eo=";
35 };
36
37 buildInputs = [ setuptools ];
38
39 propagatedBuildInputs = [
40 beautifulsoup4
41 gitpython
42 pydata-sphinx-theme
43 pygithub
44 sphinx
45 breathe
46 myst-nb
47 myst-parser
48 sphinx-book-theme
49 sphinx-copybutton
50 sphinx-design
51 sphinx-external-toc
52 sphinx-notfound-page
53 pyyaml
54 fastjsonschema
55 ];
56
57 pythonImportsCheck = [ "rocm_docs" ];
58
59 passthru.updateScript = gitUpdater { rev-prefix = "v"; };
60
61 meta = with lib; {
62 description = "ROCm Documentation Python package for ReadTheDocs build standardization";
63 homepage = "https://github.com/ROCm/rocm-docs-core";
64 license = with licenses; [
65 mit
66 cc-by-40
67 ];
68 teams = [ teams.rocm ];
69 platforms = platforms.linux;
70 };
71}