depot/third_party/nixpkgs/pkgs/development/python-modules/markdown/default.nix
Default email 14910f5943 Project import generated by Copybara.
GitOrigin-RevId: 5aaed40d22f0d9376330b6fa413223435ad6fee5
2022-01-13 15:06:32 -05:00

38 lines
794 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, importlib-metadata
, pyyaml
, python
}:
buildPythonPackage rec {
pname = "markdown";
version = "3.3.6";
disabled = pythonOlder "3.6";
src = fetchPypi {
pname = "Markdown";
inherit version;
sha256 = "sha256-dt+K4yKU7Dnc+JNAOCiC36Epdfh/RcPtHs2x6M78cAY=";
};
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
importlib-metadata
];
checkInputs = [ pyyaml ];
checkPhase = ''
${python.interpreter} -m unittest discover
'';
meta = with lib; {
description = "A Python implementation of John Gruber's Markdown with Extension support";
homepage = "https://github.com/Python-Markdown/markdown";
license = licenses.bsd3;
maintainers = with maintainers; [ dotlambda ];
};
}