ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / parsimonious / default.nix
blobf22b1b605e3492e49ef421511013b5c13183fd10
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , regex
5 , pytestCheckHook
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "parsimonious";
11   version = "0.10.0";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchPypi {
17     inherit pname version;
18     hash = "sha256-goFgDaGA7IrjVCekq097gr/sHj0eUvgMtg6oK5USUBw=";
19   };
21   propagatedBuildInputs = [
22     regex
23   ];
25   checkInputs = [
26     pytestCheckHook
27   ];
29   postPatch = ''
30     substituteInPlace setup.py \
31       --replace "regex>=2022.3.15" "regex"
32   '';
34   pythonImportsCheck = [
35     "parsimonious"
36     "parsimonious.grammar"
37     "parsimonious.nodes"
38   ];
40   meta = with lib; {
41     description = "Arbitrary-lookahead parser";
42     homepage = "https://github.com/erikrose/parsimonious";
43     license = licenses.mit;
44     maintainers = with maintainers; [ ];
45   };