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

37 lines
700 B
Nix
Raw Normal View History

2017-12-31 10:41:24 +00:00
{ lib
, buildPythonPackage
, fetchPypi
, setuptools
2017-12-31 10:41:24 +00:00
, nose
, pyyaml
2020-06-07 09:15:35 +01:00
, pythonOlder
, importlib-metadata
, isPy3k
2017-12-31 10:41:24 +00:00
}:
buildPythonPackage rec {
pname = "Markdown";
2020-06-06 07:47:17 +01:00
version = "3.2.2";
2017-12-31 10:41:24 +00:00
src = fetchPypi {
inherit pname version;
2020-06-06 07:47:17 +01:00
sha256 = "1fafe3f1ecabfb514a5285fca634a53c1b32a81cb0feb154264d55bf2ff22c17";
2017-12-31 10:41:24 +00:00
};
2020-06-07 09:15:35 +01:00
propagatedBuildInputs = [
setuptools
] ++ lib.optionals (pythonOlder "3.8") [
importlib-metadata
];
disabled = !isPy3k;
2017-12-31 10:41:24 +00: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 10:41:24 +00:00
license = lib.licenses.bsd3;
};
2018-08-08 19:24:19 +01:00
}