Merge pull request #169549 from fabaff/parsimonious-fix
python3Packages.parsimonious: relax regex constraint
This commit is contained in:
commit
56dac5c7a0
1 changed files with 11 additions and 3 deletions
|
@ -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; [ ];
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue