depot/third_party/nixpkgs/pkgs/development/python-modules/markdown/default.nix
Default email a0cb138ada Project import generated by Copybara.
GitOrigin-RevId: a100acd7bbf105915b0004427802286c37738fef
2023-02-02 18:25:31 +00:00

38 lines
836 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, importlib-metadata
, pyyaml
, unittestCheckHook
}:
buildPythonPackage rec {
pname = "markdown";
version = "3.4.1";
disabled = pythonOlder "3.7";
format = "setuptools";
src = fetchPypi {
pname = "Markdown";
inherit version;
sha256 = "3b809086bb6efad416156e00a0da66fe47618a5d6918dd688f53f40c8e4cfeff";
};
propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
importlib-metadata
];
nativeCheckInputs = [ unittestCheckHook pyyaml ];
pythonImportsCheck = [ "markdown" ];
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 ];
};
}