diff options
author | Madoura <madouura@gmail.com> | 2023-10-05 02:35:52 -0500 |
---|---|---|
committer | Madoura <madouura@gmail.com> | 2023-10-09 16:38:53 -0500 |
commit | 05de74ecf3083ec7a4479dc131a24167f0dfd3d0 (patch) | |
tree | 5620bda3c0921c6d886e9f2e4c0557a3132dd94c /pkgs/development/rocm-modules/5 | |
parent | 0a89aedcea092534a4e0e2e57672dd35d5c8f518 (diff) |
rocmPackages.rocm-docs-core: init at 0.25.0
Diffstat (limited to 'pkgs/development/rocm-modules/5')
-rw-r--r-- | pkgs/development/rocm-modules/5/default.nix | 2 | ||||
-rw-r--r-- | pkgs/development/rocm-modules/5/rocm-docs-core/default.nix | 65 |
2 files changed, 67 insertions, 0 deletions
diff --git a/pkgs/development/rocm-modules/5/default.nix b/pkgs/development/rocm-modules/5/default.nix index d3effc777613e..e0295f08720fc 100644 --- a/pkgs/development/rocm-modules/5/default.nix +++ b/pkgs/development/rocm-modules/5/default.nix @@ -70,6 +70,8 @@ in rec { # stdenv = llvm.rocmClangStdenv; }; + rocm-docs-core = python3Packages.callPackage ./rocm-docs-core { }; + ## ROCm-Developer-Tools ## hip-common = callPackage ./hip-common { inherit rocmUpdateScript; diff --git a/pkgs/development/rocm-modules/5/rocm-docs-core/default.nix b/pkgs/development/rocm-modules/5/rocm-docs-core/default.nix new file mode 100644 index 0000000000000..65d21daa5b503 --- /dev/null +++ b/pkgs/development/rocm-modules/5/rocm-docs-core/default.nix @@ -0,0 +1,65 @@ +{ 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 +}: + +buildPythonPackage rec { + pname = "rocm-docs-core"; + version = "0.25.0"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "RadeonOpenCompute"; + repo = "rocm-docs-core"; + rev = "v${version}"; + hash = "sha256-kOsoIK0vaPT60hGr960s5vc0eloSr5CECtd8Dy24YuM="; + }; + + 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; + }; +} |