python39Packages.pyparsing: 3.0.6 -> 3.0.7, switch to pytestCheckHook

This commit is contained in:
Sandro Jäckel 2022-03-23 09:14:28 +01:00
parent 85a633de9f
commit a06d3ff281
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -5,31 +5,31 @@
# since this is a dependency of pytest, we need to avoid
# circular dependencies
, jinja2
, pytestCheckHook
, railroad-diagrams
}:
let
pyparsing = buildPythonPackage rec {
pname = "pyparsing";
version = "3.0.6";
version = "3.0.7";
src = fetchFromGitHub {
owner = "pyparsing";
repo = pname;
rev = "pyparsing_${version}";
sha256 = "0n89ky7rx5yg09ssji8liahnyxip08hz7syc2k4pmlgs4978181a";
sha256 = "sha256-RyvTTbFshAZgyZPgzqcq31E504RlnMZuf16jJYGqDDI=";
};
# circular dependencies if enabled by default
doCheck = false;
checkInputs = [
jinja2
pytestCheckHook
railroad-diagrams
];
checkPhase = ''
python -m unittest
'';
pythonImportsCheck = [ "pyparsing" ];
passthru.tests = {
check = pyparsing.overridePythonAttrs (_: { doCheck = true; });
@ -39,9 +39,7 @@ let
homepage = "https://github.com/pyparsing/pyparsing";
description = "An alternative approach to creating and executing simple grammars, vs. the traditional lex/yacc approach, or the use of regular expressions";
license = licenses.mit;
maintainers = with maintainers; [
kamadorueda
];
maintainers = with maintainers; [ kamadorueda ];
};
};
in