writers: add writeGuile[Bin] (#364531)
[NixPkgs.git] / pkgs / development / python-modules / mistletoe / default.nix
blobec33d7bec839685bda0a854443aa44422da45cae
2   lib,
3   fetchFromGitHub,
4   buildPythonPackage,
5   parameterized,
6   pygments,
7   pythonOlder,
8   pytestCheckHook,
9 }:
11 buildPythonPackage rec {
12   pname = "mistletoe";
13   version = "1.4.0";
14   format = "setuptools";
16   disabled = pythonOlder "3.7";
18   src = fetchFromGitHub {
19     owner = "miyuchina";
20     repo = "mistletoe";
21     rev = "refs/tags/v${version}";
22     hash = "sha256-jFU16vdASGVSPq+TJ/6cN7IGkE/61SL9BWCOPsVqNaU=";
23   };
25   pythonImportsCheck = [ "mistletoe" ];
27   nativeCheckInputs = [
28     parameterized
29     pygments
30     pytestCheckHook
31   ];
33   meta = with lib; {
34     description = "Fast and extensible Markdown parser";
35     mainProgram = "mistletoe";
36     homepage = "https://github.com/miyuchina/mistletoe";
37     changelog = "https://github.com/miyuchina/mistletoe/releases/tag/v${version}";
38     license = licenses.mit;
39     maintainers = with maintainers; [ eadwu ];
40   };