nixpkgs/pkgs/development/python-modules/markdown/default.nix
2021-05-18 17:11:36 +02:00

37 lines
788 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, importlib-metadata
, pyyaml
, python
}:
buildPythonPackage rec {
pname = "Markdown";
version = "3.3.4";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "31b5b491868dcc87d6c24b7e3d19a0d730d59d3e46f4eea6430a321bed387a49";
};
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
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 ];
};
}