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