1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pythonOlder
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "parsy";
10 version = "1.4.0";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.5";
14
15 src = fetchFromGitHub {
16 repo = "parsy";
17 owner = "python-parsy";
18 rev = "v${version}";
19 sha256 = "sha256-FislrLb+u4T5m/eEER7kazZHJKEwPHe+Vg/YDJp4PyM=";
20 };
21
22 checkInputs = [
23 pytestCheckHook
24 ];
25
26 pythonImportsCheck = [
27 "parsy"
28 ];
29
30 meta = with lib; {
31 homepage = "https://github.com/python-parsy/parsy";
32 description = "Easy-to-use parser combinators, for parsing in pure Python";
33 license = [ licenses.mit ];
34 maintainers = with maintainers; [ milibopp ];
35 };
36}