Merge pull request #152431 from fabaff/fix-questionary

python3Packages.questionary: disable failing test
This commit is contained in:
Fabian Affolter 2021-12-29 23:01:53 +01:00 committed by GitHub
commit d9fab1c90a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,10 +1,10 @@
{ lib { lib
, buildPythonPackage , buildPythonPackage
, fetchFromGitHub , fetchFromGitHub
, poetry , poetry-core
, prompt-toolkit , prompt-toolkit
, pytest-cov
, pytestCheckHook , pytestCheckHook
, pythonOlder
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -12,6 +12,8 @@ buildPythonPackage rec {
version = "1.10.0"; version = "1.10.0";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.6";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "tmbo"; owner = "tmbo";
repo = pname; repo = pname;
@ -20,7 +22,7 @@ buildPythonPackage rec {
}; };
nativeBuildInputs = [ nativeBuildInputs = [
poetry poetry-core
]; ];
propagatedBuildInputs = [ propagatedBuildInputs = [
@ -28,11 +30,17 @@ buildPythonPackage rec {
]; ];
checkInputs = [ checkInputs = [
pytest-cov
pytestCheckHook pytestCheckHook
]; ];
pythonImportsCheck = [ "questionary" ]; disabledTests = [
# TypeError: <lambda>() missing 1 required...
"test_print_with_style"
];
pythonImportsCheck = [
"questionary"
];
meta = with lib; { meta = with lib; {
description = "Python library to build command line user prompts"; description = "Python library to build command line user prompts";