python312Packages.sphinx-automodapi: refactor
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
fetchurl,
|
||||
pythonOlder,
|
||||
setuptools-scm,
|
||||
git,
|
||||
sphinx,
|
||||
@@ -17,22 +16,20 @@ buildPythonPackage rec {
|
||||
pname = "sphinx-automodapi";
|
||||
version = "0.19.0";
|
||||
pyproject = true;
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "astropy";
|
||||
repo = pname;
|
||||
repo = "sphinx-automodapi";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-idz14x6ErHqkbAYzEpBmZFpv2lY+dJqhM2ChJys+Ed8=";
|
||||
leaveDotGit = true;
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
setuptools-scm
|
||||
git
|
||||
];
|
||||
build-system = [ setuptools-scm ];
|
||||
|
||||
propagatedBuildInputs = [ sphinx ];
|
||||
nativeBuildInputs = [ git ];
|
||||
|
||||
dependencies = [ sphinx ];
|
||||
|
||||
# https://github.com/astropy/sphinx-automodapi/issues/155
|
||||
testInventory = fetchurl {
|
||||
@@ -58,6 +55,7 @@ buildPythonPackage rec {
|
||||
meta = with lib; {
|
||||
description = "Sphinx extension for generating API documentation";
|
||||
homepage = "https://github.com/astropy/sphinx-automodapi";
|
||||
changelog = "https://github.com/astropy/sphinx-automodapi/releases/tag/${src.tag}";
|
||||
license = licenses.bsd3;
|
||||
maintainers = with maintainers; [ lovesegfault ];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user