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