1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, markdown 5, setuptools-scm 6}: 7 8buildPythonPackage rec { 9 pname = "markdown-include"; 10 version = "0.8.1"; 11 format = "setuptools"; 12 13 # only wheel on pypi 14 src = fetchFromGitHub { 15 owner = "cmacmackin"; 16 repo = pname; 17 rev = "refs/tags/v${version}"; 18 hash = "sha256-1MEk0U00a5cpVhqnDZkwBIk4NYgsRXTVsI/ANNQ/OH0="; 19 }; 20 21 SETUPTOOLS_SCM_PRETEND_VERSION = version; 22 23 nativeBuildInputs = [ 24 setuptools-scm 25 ]; 26 27 propagatedBuildInputs = [ 28 markdown 29 ]; 30 31 pythonImportsCheck = [ 32 "markdown_include" 33 ]; 34 35 doCheck = false; # no tests 36 37 meta = with lib; { 38 description = "Extension to Python-Markdown which provides an include function"; 39 homepage = "https://github.com/cmacmackin/markdown-include"; 40 license = licenses.gpl3Plus; 41 maintainers = with maintainers; [ hexa ]; 42 }; 43}