mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-03-09 04:46:51 +01:00
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>
36 lines
780 B
Nix
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 = [ ];
|
|
};
|
|
}
|