From e6989959140cd5f185bbd3a3cfc33d531beb68b6 Mon Sep 17 00:00:00 2001 From: Jonathan Ringer Date: Thu, 13 Jan 2022 18:14:59 -0800 Subject: [PATCH] python3Packages.pyparsing: fix tests --- pkgs/development/python-modules/pyparsing/default.nix | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/pyparsing/default.nix b/pkgs/development/python-modules/pyparsing/default.nix index 1d3ec43bc78b..5e9326483fbe 100644 --- a/pkgs/development/python-modules/pyparsing/default.nix +++ b/pkgs/development/python-modules/pyparsing/default.nix @@ -1,9 +1,6 @@ { buildPythonPackage , fetchFromGitHub , lib - -# pythonPackages -, coverage }: buildPythonPackage rec { @@ -17,11 +14,10 @@ buildPythonPackage rec { sha256 = "0n89ky7rx5yg09ssji8liahnyxip08hz7syc2k4pmlgs4978181a"; }; - # https://github.com/pyparsing/pyparsing/blob/847af590154743bae61a32c3dc1a6c2a19009f42/tox.ini#L6 - checkInputs = [ coverage ]; + # only do unit tests, as diagram tests require railroad, which has + # been unmaintained since 2015 checkPhase = '' - coverage run --branch simple_unit_tests.py - coverage run --branch unitTests.py + python -m unittest -k 'not testEmptyExpressionsAreHandledProperly' tests/test_unit.py ''; meta = with lib; {