66 lines
1.3 KiB
Nix
66 lines
1.3 KiB
Nix
{ lib
|
|
, stdenv
|
|
, fetchFromGitHub
|
|
, gitUpdater
|
|
, buildPythonPackage
|
|
, setuptools
|
|
, beautifulsoup4
|
|
, gitpython
|
|
, pydata-sphinx-theme
|
|
, pygithub
|
|
, sphinx
|
|
, breathe
|
|
, myst-parser
|
|
, sphinx-book-theme
|
|
, sphinx-copybutton
|
|
, sphinx-design
|
|
, sphinx-external-toc
|
|
, sphinx-notfound-page
|
|
, pyyaml
|
|
, fastjsonschema
|
|
}:
|
|
|
|
# FIXME: Move to rocmPackages_common
|
|
buildPythonPackage rec {
|
|
pname = "rocm-docs-core";
|
|
version = "0.26.0";
|
|
format = "pyproject";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "RadeonOpenCompute";
|
|
repo = "rocm-docs-core";
|
|
rev = "v${version}";
|
|
hash = "sha256-Mr6/Ne6P+TapoCqN7xkKMNse3fTaIAvvLmMl0kVg7Vs=";
|
|
};
|
|
|
|
buildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [
|
|
beautifulsoup4
|
|
gitpython
|
|
pydata-sphinx-theme
|
|
pygithub
|
|
sphinx
|
|
breathe
|
|
myst-parser
|
|
sphinx-book-theme
|
|
sphinx-copybutton
|
|
sphinx-design
|
|
sphinx-external-toc
|
|
sphinx-notfound-page
|
|
pyyaml
|
|
fastjsonschema
|
|
];
|
|
|
|
pythonImportsCheck = [ "rocm_docs" ];
|
|
|
|
passthru.updateScript = gitUpdater { rev-prefix = "v"; };
|
|
|
|
meta = with lib; {
|
|
description = "ROCm Documentation Python package for ReadTheDocs build standardization";
|
|
homepage = "https://github.com/RadeonOpenCompute/rocm-docs-core";
|
|
license = with licenses; [ mit cc-by-40 ];
|
|
maintainers = teams.rocm.members;
|
|
platforms = platforms.linux;
|
|
};
|
|
}
|