python3Packages.enlighten: disable failing test

This commit is contained in:
Fabian Affolter 2022-02-20 12:37:07 +01:00
parent 95dd4592d3
commit ef82822524

View File

@ -5,28 +5,41 @@
, blessed , blessed
, prefixed , prefixed
, pytestCheckHook , pytestCheckHook
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "enlighten"; pname = "enlighten";
version = "1.10.2"; version = "1.10.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "7a5b83cd0f4d095e59d80c648ebb5f7ffca0cd8bcf7ae6639828ee1ad000632a"; hash = "sha256-eluDzQ9NCV5Z2Axkjrtff/ygzYvPeuZjmCjuGtAAYyo=";
}; };
propagatedBuildInputs = [ propagatedBuildInputs = [
blessed blessed
prefixed prefixed
]; ];
checkInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "enlighten" ]; checkInputs = [
disabledTests = pytestCheckHook
];
pythonImportsCheck = [
"enlighten"
];
disabledTests = [
# AssertionError: <_io.TextIOWrapper name='<stdout>' mode='w' encoding='utf-8'> is not...
"test_init"
] ++ lib.optional stdenv.isDarwin [
# https://github.com/Rockhopper-Technologies/enlighten/issues/44 # https://github.com/Rockhopper-Technologies/enlighten/issues/44
lib.optional stdenv.isDarwin "test_autorefresh" "test_autorefresh"
; ];
meta = with lib; { meta = with lib; {
description = "Enlighten Progress Bar for Python Console Apps"; description = "Enlighten Progress Bar for Python Console Apps";