nixpkgs/pkgs/development/python-modules/markdown/default.nix

37 lines
698 B
Nix
Raw Normal View History

2017-12-31 02:41:24 -08:00
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
2017-12-31 02:41:24 -08:00
, nose
, pyyaml
2020-06-07 01:15:35 -07:00
, pythonOlder
, importlib-metadata
, isPy3k
2017-12-31 02:41:24 -08:00
}:
buildPythonPackage rec {
pname = "Markdown";
version = "3.3.4";
2017-12-31 02:41:24 -08:00
src = fetchPypi {
inherit pname version;
sha256 = "31b5b491868dcc87d6c24b7e3d19a0d730d59d3e46f4eea6430a321bed387a49";
2017-12-31 02:41:24 -08:00
};
2020-08-24 19:07:09 -07:00
propagatedBuildInputs = [
setuptools
2020-06-07 01:15:35 -07:00
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
disabled = !isPy3k;
2017-12-31 02:41:24 -08:00
checkInputs = [ nose pyyaml ];
meta = {
description = "A Python implementation of John Gruber's Markdown with Extension support";
homepage = "https://github.com/Python-Markdown/markdown";
2017-12-31 02:41:24 -08:00
license = lib.licenses.bsd3;
};
2018-08-08 11:24:19 -07:00
}