Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / markdown / default.nix
blob7de193bbbbd792a683b94fb95290fa80c15f14ad
1 { lib
2 , buildPythonPackage
3 , pythonOlder
4 , fetchFromGitHub
5 , importlib-metadata
6 , pyyaml
7 , setuptools
8 , unittestCheckHook
9 , wheel
12 buildPythonPackage rec {
13   pname = "markdown";
14   version = "3.4.4";
16   disabled = pythonOlder "3.7";
18   format = "pyproject";
20   src = fetchFromGitHub {
21     owner = "Python-Markdown";
22     repo = "markdown";
23     rev = "refs/tags/${version}";
24     hash = "sha256-5PIIhbJVsotGwZ3BQ4x0I7WjgnGF3opNrn8J+xZCflg=";
25   };
27   nativeBuildInputs = [
28     setuptools
29     wheel
30   ];
32   propagatedBuildInputs = lib.optionals (pythonOlder "3.10") [
33     importlib-metadata
34   ];
36   nativeCheckInputs = [ unittestCheckHook pyyaml ];
38   pythonImportsCheck = [ "markdown" ];
40   meta = with lib; {
41     changelog = "https://github.com/Python-Markdown/markdown/blob/${src.rev}/docs/change_log/index.md";
42     description = "Python implementation of John Gruber's Markdown";
43     homepage = "https://github.com/Python-Markdown/markdown";
44     license = licenses.bsd3;
45     maintainers = with maintainers; [ dotlambda ];
46   };