nixpkgs/pkgs/development/python-modules/sphinx-mdinclude/default.nix
Michael Daniels 075e8c2c4f
treewide: change 'format = "pyproject";' to 'pyproject = true;'
This is almost all find-and-replace.

I manually edited:
* pkgs/development/python-modules/notifications-android-tv/default.nix,
* pkgs/servers/home-assistant/default.nix,
* pkgs/development/tools/continuous-integration/buildbot/master.nix

A few files have not been changed in this PR because they would cause rebuilds.

This PR should have 0 rebuilds.
2026-01-12 17:50:35 -05:00

59 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
# build-system
flit-core,
# dependencies
docutils,
mistune,
pygments,
sphinx,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "sphinx-mdinclude";
version = "0.6.2";
pyproject = true;
src = fetchPypi {
pname = "sphinx_mdinclude";
inherit version;
hash = "sha256-RHRi6Cy4vmFASiIEIn+SB2nrkj0vV2COMyXzu4goa0w=";
};
nativeBuildInputs = [ flit-core ];
propagatedBuildInputs = [
docutils
mistune
pygments
sphinx
];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
homepage = "https://github.com/omnilib/sphinx-mdinclude";
changelog = "https://github.com/omnilib/sphinx-mdinclude/blob/v${version}/CHANGELOG.md";
description = "Sphinx extension for including or writing pages in Markdown format";
longDescription = ''
A simple Sphinx extension that enables including Markdown documents from within
reStructuredText.
It provides the .. mdinclude:: directive, and automatically converts the content of
Markdown documents to reStructuredText format.
sphinx-mdinclude is a fork of m2r and m2r2, focused only on providing a Sphinx extension.
'';
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
flokli
JulianFP
];
};
}