Fabian Affolter fe6b8c4b0f python3Packages.markdown2: 2.4.0 -> 2.4.1
(cherry picked from commit 5b4b1cbfc41d0354645059b10df547a82905eb1e)
2021-08-22 15:13:49 +00:00

28 lines
704 B
Nix

{ lib, buildPythonPackage, fetchFromGitHub, python, pygments }:
buildPythonPackage rec {
pname = "markdown2";
version = "2.4.1";
# PyPI does not contain tests, so using GitHub instead.
src = fetchFromGitHub {
owner = "trentm";
repo = "python-markdown2";
rev = version;
sha256 = "0y7kh9jj8ys00qkfmmyqj63y21g7wn7yr715kj0j1nabs6xbp0y7";
};
checkInputs = [ pygments ];
checkPhase = ''
${python.interpreter} ./test/test.py
'';
meta = with lib; {
description = "A fast and complete Python implementation of Markdown";
homepage = "https://github.com/trentm/python-markdown2";
license = licenses.mit;
maintainers = with maintainers; [ hbunke ];
};
}