1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 pytestCheckHook,
7}:
8
9buildPythonPackage rec {
10 pname = "parsy";
11 version = "2.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 repo = "parsy";
18 owner = "python-parsy";
19 tag = "v${version}";
20 hash = "sha256-/Bu3xZUpXI4WiYJKKWTJTdSFq8pwC1PFDw0Kr8s3Fe8=";
21 };
22
23 nativeCheckInputs = [ pytestCheckHook ];
24
25 pythonImportsCheck = [ "parsy" ];
26
27 meta = with lib; {
28 homepage = "https://github.com/python-parsy/parsy";
29 description = "Easy-to-use parser combinators, for parsing in pure Python";
30 changelog = "https://github.com/python-parsy/parsy/blob/v${version}/docs/history.rst";
31 license = licenses.mit;
32 maintainers = with maintainers; [ milibopp ];
33 };
34}