1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-25 03:17:13 +00:00
nixpkgs/pkgs/development/python-modules/markdown/default.nix

38 lines
788 B
Nix
Raw Normal View History

2017-12-31 10:41:24 +00:00
{ lib
, buildPythonPackage
2020-06-07 09:15:35 +01:00
, pythonOlder
, fetchPypi
2020-06-07 09:15:35 +01:00
, importlib-metadata
, pyyaml
, python
2017-12-31 10:41:24 +00:00
}:
buildPythonPackage rec {
pname = "Markdown";
version = "3.3.4";
2017-12-31 10:41:24 +00:00
disabled = pythonOlder "3.6";
2017-12-31 10:41:24 +00:00
src = fetchPypi {
inherit pname version;
sha256 = "31b5b491868dcc87d6c24b7e3d19a0d730d59d3e46f4eea6430a321bed387a49";
2017-12-31 10:41:24 +00:00
};
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
2020-06-07 09:15:35 +01:00
importlib-metadata
];
checkInputs = [ pyyaml ];
checkPhase = ''
${python.interpreter} -m unittest discover
'';
2017-12-31 10:41:24 +00:00
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 ];
2017-12-31 10:41:24 +00:00
};
2018-08-08 19:24:19 +01:00
}