From 2a8260767967d4d6b2a27471cba601616e5ca13a Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 26 Mar 2022 22:41:26 +0100 Subject: [PATCH] python3Packages.openapi-core: disable failing tests --- .../python-modules/openapi-core/default.nix | 65 +++++++++++-------- 1 file changed, 37 insertions(+), 28 deletions(-) diff --git a/pkgs/development/python-modules/openapi-core/default.nix b/pkgs/development/python-modules/openapi-core/default.nix index 0d48ab04a1d..199ea38ae4a 100644 --- a/pkgs/development/python-modules/openapi-core/default.nix +++ b/pkgs/development/python-modules/openapi-core/default.nix @@ -1,34 +1,40 @@ { lib -, buildPythonPackage -, fetchFromGitHub -, isodate -, dictpath -, openapi-spec-validator -, openapi-schema-validator -, six -, lazy-object-proxy , attrs -, werkzeug -, parse -, more-itertools -, pytestCheckHook -, falcon -, flask +, buildPythonPackage +, dictpath , django , djangorestframework -, responses +, falcon +, fetchFromGitHub +, flask +, isodate +, lazy-object-proxy , mock +, more-itertools +, openapi-schema-validator +, openapi-spec-validator +, parse +, pytestCheckHook +, pythonOlder +, responses +, six +, webob +, werkzeug +, python }: buildPythonPackage rec { pname = "openapi-core"; version = "0.14.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "p1c2u"; repo = "openapi-core"; rev = version; - sha256 = "1npsibyf8zx6z230yl19kyap8g25kqvgm7z1w6rm6jxv58yqsp7r"; + hash = "sha256-+VyNPSq7S1Oz4eGf+jaeRTx0lZ8pUA+G+KZ/5PyK+to="; }; postPatch = '' @@ -36,31 +42,34 @@ buildPythonPackage rec { ''; propagatedBuildInputs = [ - isodate - dictpath - openapi-spec-validator - openapi-schema-validator - six - lazy-object-proxy attrs - werkzeug - parse + dictpath + isodate + lazy-object-proxy more-itertools + openapi-schema-validator + openapi-spec-validator + parse + six + werkzeug ]; checkInputs = [ - pytestCheckHook - falcon - flask django djangorestframework - responses + falcon + flask mock + pytestCheckHook + responses + webob ]; disabledTestPaths = [ # AttributeError: 'str' object has no attribute '__name__' "tests/integration/validation" + # Unable to detect SECRET_KEY and ROOT_URLCONF + "tests/integration/contrib/test_django.py" ]; disabledTests = [