From 208628765626cd4e06017ec0ebed4492473aea05 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Mon, 14 Feb 2022 18:04:10 +0100 Subject: [PATCH] python3Packages.Markups: disable failing test --- .../python-modules/Markups/default.nix | 53 ++++++++++++++----- 1 file changed, 41 insertions(+), 12 deletions(-) diff --git a/pkgs/development/python-modules/Markups/default.nix b/pkgs/development/python-modules/Markups/default.nix index 1fa304f57a8a..2a0db14d96e7 100644 --- a/pkgs/development/python-modules/Markups/default.nix +++ b/pkgs/development/python-modules/Markups/default.nix @@ -1,29 +1,58 @@ { lib , buildPythonPackage -, fetchPypi -, python-markdown-math -, markdown , docutils +, fetchPypi +, importlib-metadata +, markdown , pygments +, pytestCheckHook +, python-markdown-math +, pythonOlder , pyyaml +, textile }: buildPythonPackage rec { - pname = "Markups"; + pname = "markups"; version = "3.1.3"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { - inherit pname version; - sha256 = "ab9747a72c1c6457418eb4276c79871977c13a654618e4f12e2a1f0990fbf2fc"; + pname = "Markups"; + inherit version; + hash = "sha256-q5dHpywcZFdBjrQnbHmHGXfBOmVGGOTxLiofCZD78vw="; }; - checkInputs = [ markdown docutils pygments pyyaml ]; - propagatedBuildInputs = [ python-markdown-math ]; + propagatedBuildInputs = [ + docutils + markdown + pygments + python-markdown-math + pyyaml + textile + ] ++ lib.optionals (pythonOlder "3.8") [ + importlib-metadata + ]; - meta = { - description = "A wrapper around various text markup languages."; + checkInputs = [ + pytestCheckHook + ]; + + disabledTests = [ + # AssertionError: '.selector .ch { color: #408080' not found in 'pre... + "test_get_pygments_stylesheet" + ]; + + pythonImportsCheck = [ + "markups" + ]; + + meta = with lib; { + description = "Wrapper around various text markup languages"; homepage = "https://github.com/retext-project/pymarkups"; - license = lib.licenses.bsd3; - maintainers = with lib.maintainers; [ klntsky ]; + license = licenses.bsd3; + maintainers = with maintainers; [ klntsky ]; }; }