Merge pull request #169549 from fabaff/parsimonious-fix

python3Packages.parsimonious: relax regex constraint
This commit is contained in:
Fabian Affolter 2022-04-21 12:21:57 +02:00 committed by GitHub
commit 56dac5c7a0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -3,6 +3,7 @@
, fetchPypi
, regex
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
@ -10,9 +11,11 @@ buildPythonPackage rec {
version = "0.9.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-sq0a5jovZb149eCorFEKmPNgekPx2yqNRmNqXZ5KMME=";
hash = "sha256-sq0a5jovZb149eCorFEKmPNgekPx2yqNRmNqXZ5KMME=";
};
propagatedBuildInputs = [
@ -23,6 +26,11 @@ buildPythonPackage rec {
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace "regex>=2022.3.15" "regex"
'';
pythonImportsCheck = [
"parsimonious"
"parsimonious.grammar"
@ -30,9 +38,9 @@ buildPythonPackage rec {
];
meta = with lib; {
description = "Arbitrary-lookahead parser";
homepage = "https://github.com/erikrose/parsimonious";
description = "Fast arbitrary-lookahead parser written in pure Python";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}