1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 pytestCheckHook, 7 pythonOlder, 8}: 9 10buildPythonPackage rec { 11 pname = "sly"; 12 version = "0.5"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.6"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-JR1CAV6FBxWK7CFk8GA130qCsDFM5kUPRX1xJedkkCQ="; 20 }; 21 22 nativeBuildInputs = [ setuptools ]; 23 24 postPatch = '' 25 # imperative dev dependency installation 26 rm Makefile 27 ''; 28 29 pythonImportsCheck = [ "sly" ]; 30 31 nativeCheckInputs = [ pytestCheckHook ]; 32 33 meta = with lib; { 34 description = "Improved PLY implementation of lex and yacc for Python 3"; 35 homepage = "https://github.com/dabeaz/sly"; 36 license = licenses.bsd3; 37 maintainers = [ ]; 38 }; 39}