nixpkgs/pkgs/development/python-modules/markdown-include/default.nix
Ihar Hrachyshka 567e8dfd8e
treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

36 lines
780 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
markdown,
setuptools-scm,
}:
buildPythonPackage rec {
pname = "markdown-include";
version = "0.8.1";
format = "setuptools";
# only wheel on pypi
src = fetchFromGitHub {
owner = "cmacmackin";
repo = "markdown-include";
tag = "v${version}";
hash = "sha256-1MEk0U00a5cpVhqnDZkwBIk4NYgsRXTVsI/ANNQ/OH0=";
};
nativeBuildInputs = [ setuptools-scm ];
propagatedBuildInputs = [ markdown ];
pythonImportsCheck = [ "markdown_include" ];
doCheck = false; # no tests
meta = {
description = "Extension to Python-Markdown which provides an include function";
homepage = "https://github.com/cmacmackin/markdown-include";
license = lib.licenses.gpl3Plus;
maintainers = [ ];
};
}