depot/third_party/nixpkgs/pkgs/development/python-modules/markdown-include/default.nix
Default email e7ec2969af Project import generated by Copybara.
GitOrigin-RevId: 9b19f5e77dd906cb52dade0b7bd280339d2a1f3d
2024-01-13 09:15:51 +01:00

41 lines
812 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 = pname;
rev = "refs/tags/v${version}";
hash = "sha256-1MEk0U00a5cpVhqnDZkwBIk4NYgsRXTVsI/ANNQ/OH0=";
};
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; [ ];
};
}