depot/third_party/nixpkgs/pkgs/development/python-modules/markdown-include/default.nix
Default email 0d9fc34957 Project import generated by Copybara.
GitOrigin-RevId: 5ed481943351e9fd354aeb557679624224de38d5
2023-01-20 11:41:00 +01:00

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 ];
};
}