depot/third_party/nixpkgs/pkgs/development/python-modules/markdown/default.nix
Default email a6d62be0d1 Project import generated by Copybara.
GitOrigin-RevId: ac169ec6371f0d835542db654a65e0f2feb07838
2021-12-26 18:43:05 +01:00

38 lines
794 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, importlib-metadata
, pyyaml
, python
}:
buildPythonPackage rec {
pname = "markdown";
version = "3.3.5";
disabled = pythonOlder "3.6";
src = fetchPypi {
pname = "Markdown";
inherit version;
sha256 = "sha256-JulUa/vN5fzQcr2PYSycG24md8uKrb32UgZnT0bd4Gk=";
};
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 ];
};
}