nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 fetchFromGitHub,
4 buildPythonPackage,
5 parameterized,
6 pygments,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "mistletoe";
12 version = "1.5.1";
13 format = "setuptools";
14
15 src = fetchFromGitHub {
16 owner = "miyuchina";
17 repo = "mistletoe";
18 tag = "v${version}";
19 hash = "sha256-h2gKvh3P4pUUPwVYTIjz43/3CwZdWbhO3aJnwFBNR+Q=";
20 };
21
22 pythonImportsCheck = [ "mistletoe" ];
23
24 nativeCheckInputs = [
25 parameterized
26 pygments
27 pytestCheckHook
28 ];
29
30 meta = {
31 description = "Fast and extensible Markdown parser";
32 mainProgram = "mistletoe";
33 homepage = "https://github.com/miyuchina/mistletoe";
34 changelog = "https://github.com/miyuchina/mistletoe/releases/tag/${src.tag}";
35 license = lib.licenses.mit;
36 maintainers = with lib.maintainers; [ eadwu ];
37 };
38}