depot/third_party/nixpkgs/pkgs/development/python-modules/parsimonious/default.nix
Default email 5083ee08a2 Project import generated by Copybara.
GitOrigin-RevId: 10ecda252ce1b3b1d6403caeadbcc8f30d5ab796
2022-09-30 06:47:45 -05:00

46 lines
828 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, regex
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "parsimonious";
version = "0.10.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-goFgDaGA7IrjVCekq097gr/sHj0eUvgMtg6oK5USUBw=";
};
propagatedBuildInputs = [
regex
];
checkInputs = [
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py \
--replace "regex>=2022.3.15" "regex"
'';
pythonImportsCheck = [
"parsimonious"
"parsimonious.grammar"
"parsimonious.nodes"
];
meta = with lib; {
description = "Arbitrary-lookahead parser";
homepage = "https://github.com/erikrose/parsimonious";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}