Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
47 lines
954 B
Nix
47 lines
954 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
hypothesis,
|
|
python,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "commonmark";
|
|
version = "0.9.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "readthedocs";
|
|
repo = "commonmark.py";
|
|
tag = version;
|
|
hash = "sha256-Ui/G/VLdjWcm7YmVjZ5Q8h0DEEFqdDByre29g3zHUq4=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
nativeCheckInputs = [ hypothesis ];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
|
|
${python.interpreter} commonmark/tests/run_spec_tests.py
|
|
${python.interpreter} commonmark/tests/unit_tests.py
|
|
|
|
export PATH=$out/bin:$PATH
|
|
cmark commonmark/tests/test.md
|
|
cmark commonmark/tests/test.md -a
|
|
cmark commonmark/tests/test.md -aj
|
|
|
|
runHook postCheck
|
|
'';
|
|
|
|
meta = with lib; {
|
|
description = "Python CommonMark parser ";
|
|
mainProgram = "cmark";
|
|
homepage = "https://github.com/readthedocs/commonmark.py";
|
|
license = licenses.bsd3;
|
|
};
|
|
}
|