Files
nixpkgs/pkgs/development/python-modules/mistletoe/default.nix
T
Martin Weinelt 3321e63b12 Merge remote-tracking branch 'origin/master' into staging-next
Conflicts:
- pkgs/development/python-modules/sphinx-autobuild/default.nix
2024-03-19 04:00:32 +01:00

43 lines
877 B
Nix

{ lib
, fetchFromGitHub
, buildPythonPackage
, parameterized
, pygments
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "mistletoe";
version = "1.3.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "miyuchina";
repo = "mistletoe";
rev = "refs/tags/v${version}";
hash = "sha256-MMBfH4q5AtC/azQUj1a1tMz1MdUf4ad5/tl7lcQCTOw=";
};
pythonImportsCheck = [
"mistletoe"
];
nativeCheckInputs = [
parameterized
pygments
pytestCheckHook
];
meta = with lib; {
description = "Fast and extensible Markdown parser";
mainProgram = "mistletoe";
homepage = "https://github.com/miyuchina/mistletoe";
changelog = "https://github.com/miyuchina/mistletoe/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ eadwu ];
};
}