1{ lib
2, buildPythonPackage
3, fetchPypi
4, pytest
5, pythonOlder
6}:
7
8buildPythonPackage rec {
9 pname = "sly";
10 version = "0.4";
11 disabled = pythonOlder "3.6";
12
13 src = fetchPypi {
14 inherit pname version;
15 sha256 = "0an31bm5m8wqwphanmcsbbnmycy6l4xkmg4za4bwq8hk4dm2dwp5";
16 };
17
18 checkInputs = [ pytest ];
19
20 # tests not included with pypi release
21 doCheck = false;
22
23 meta = with lib; {
24 description = "An improved PLY implementation of lex and yacc for Python 3";
25 homepage = "https://github.com/dabeaz/sly";
26 license = licenses.bsd3;
27 maintainers = [ maintainers.costrouc ];
28 };
29}