Merge pull request #334364 from dotlambda/python3Packages.pdoc3
python312Packages.pdoc3: 0.10.0 -> 0.11.1
This commit is contained in:
@@ -1,56 +1,48 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
fetchpatch,
|
||||
fetchFromGitHub,
|
||||
pythonOlder,
|
||||
mako,
|
||||
markdown,
|
||||
setuptools-git,
|
||||
setuptools-scm,
|
||||
unittestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pdoc3";
|
||||
version = "0.10.0";
|
||||
format = "setuptools";
|
||||
disabled = pythonOlder "3.7";
|
||||
version = "0.11.1";
|
||||
pyproject = true;
|
||||
disabled = pythonOlder "3.9";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
hash = "sha256-XyLnvLlpAGc44apCGcdaMvNMLWLUbcnS+y0+CwKH5Lc=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "pdoc3";
|
||||
repo = "pdoc";
|
||||
rev = "refs/tags/${version}";
|
||||
hash = "sha256-Opj1fU1eZvqsYJGCBliVwugxFV4H1hzOOTkjs4fOEWA=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
(fetchpatch {
|
||||
# test_Class_params fails in 0.10.0
|
||||
# https://github.com/pdoc3/pdoc/issues/355
|
||||
url = "https://github.com/pdoc3/pdoc/commit/4aa70de2221a34a3003a7e5f52a9b91965f0e359.patch";
|
||||
hash = "sha256-W7Dy516cA+Oj0ZCTQBB6MJ+fCTBeLRp+aW8nANdxSx8=";
|
||||
})
|
||||
# https://github.com/pdoc3/pdoc/issues/400
|
||||
(fetchpatch {
|
||||
name = "fix-test-for-python310.patch";
|
||||
url = "https://github.com/pdoc3/pdoc/commit/80af5d40d3ca39e2701c44941c1003ae6a280799.patch";
|
||||
hash = "sha256-69Cn+BY7feisSHugONIF/PRgEDEfnvnS/RBHWv1P8/w=";
|
||||
excludes = [ ".github/workflows/ci.yml" ];
|
||||
})
|
||||
];
|
||||
|
||||
nativeBuildInputs = [
|
||||
build-system = [
|
||||
setuptools-git
|
||||
setuptools-scm
|
||||
];
|
||||
|
||||
propagatedBuildInputs = [
|
||||
dependencies = [
|
||||
mako
|
||||
markdown
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
pythonImportsCheck = [ "pdoc" ];
|
||||
|
||||
nativeCheckInputs = [ unittestCheckHook ];
|
||||
|
||||
meta = {
|
||||
changelog = "https://github.com/pdoc3/pdoc/blob/${src.rev}/CHANGELOG";
|
||||
description = "Auto-generate API documentation for Python projects";
|
||||
homepage = "https://pdoc3.github.io/pdoc/";
|
||||
license = with licenses; [ agpl3Plus ];
|
||||
maintainers = with maintainers; [ catern ];
|
||||
license = lib.licenses.agpl3Plus;
|
||||
mainProgram = "pdoc";
|
||||
maintainers = with lib.maintainers; [ catern ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user