0d9fc34957
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
43 lines
862 B
Nix
43 lines
862 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, markdown
|
|
, setuptools-scm
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "markdown-include";
|
|
version = "0.8.0";
|
|
format = "setuptools";
|
|
|
|
# only wheel on pypi
|
|
src = fetchFromGitHub {
|
|
owner = "cmacmackin";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-wTGgxvM3/h+6plUcheeMSkpk1we7pwuWHurkDkmbnPY=";
|
|
};
|
|
|
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
|
|
|
nativeBuildInputs = [
|
|
setuptools-scm
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
markdown
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"markdown_include"
|
|
];
|
|
|
|
doCheck = false; # no tests
|
|
|
|
meta = with lib; {
|
|
description = "Extension to Python-Markdown which provides an include function";
|
|
homepage = "https://github.com/cmacmackin/markdown-include";
|
|
license = licenses.gpl3Plus;
|
|
maintainers = with maintainers; [ hexa ];
|
|
};
|
|
}
|