nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 docutils,
5 fetchFromGitHub,
6 markdown,
7 pygments,
8 pytestCheckHook,
9 python-markdown-math,
10 pyyaml,
11 setuptools,
12 textile,
13}:
14
15buildPythonPackage rec {
16 pname = "markups";
17 version = "4.1.1";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "retext-project";
22 repo = "pymarkups";
23 tag = version;
24 hash = "sha256-kQ1L8l/ONT4qOA/xfx85WyA7pDveaKoXWGZbljYxO/4=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 docutils
31 markdown
32 pygments
33 python-markdown-math
34 pyyaml
35 textile
36 ];
37
38 nativeCheckInputs = [ pytestCheckHook ];
39
40 disabledTests = [
41 # AssertionError: '.selector .ch { color: #408080' not found in 'pre...
42 "test_get_pygments_stylesheet"
43 ];
44
45 pythonImportsCheck = [ "markups" ];
46
47 meta = {
48 description = "Wrapper around various text markup languages";
49 homepage = "https://github.com/retext-project/pymarkups";
50 license = lib.licenses.bsd3;
51 maintainers = with lib.maintainers; [ klntsky ];
52 };
53}