From 87b373e822796aaef3a42eeabba2de672137c43f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sandro=20J=C3=A4ckel?= Date: Sat, 19 Feb 2022 00:43:54 +0100 Subject: [PATCH] python39Packages.warlock: disable failing test also fixes openstack glances client --- .../python-modules/warlock/default.nix | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/warlock/default.nix b/pkgs/development/python-modules/warlock/default.nix index d0a192fcc57b..c20723e8d6e2 100644 --- a/pkgs/development/python-modules/warlock/default.nix +++ b/pkgs/development/python-modules/warlock/default.nix @@ -22,6 +22,12 @@ buildPythonPackage rec { hash = "sha256-59V4KOwjs/vhA3F3E0j3p5L4JnKPgcExN+mgSWs0Cn0="; }; + postPatch = '' + substituteInPlace requirements.txt \ + --replace "jsonschema>=0.7,<4" "jsonschema" + sed -i "/--cov/d" pytest.ini + ''; + propagatedBuildInputs = [ jsonpatch jsonschema @@ -32,11 +38,10 @@ buildPythonPackage rec { pytestCheckHook ]; - postPatch = '' - substituteInPlace requirements.txt \ - --replace "jsonschema>=0.7,<4" "jsonschema" - sed -i "/--cov/d" pytest.ini - ''; + disabledTests = [ + # https://github.com/bcwaldon/warlock/issues/64 + "test_recursive_models" + ]; pythonImportsCheck = [ "warlock"