1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 setuptools, 6 ply, 7 pytestCheckHook, 8}: 9 10buildPythonPackage rec { 11 pname = "phply"; 12 version = "1.2.6"; 13 14 pyproject = true; 15 16 src = fetchPypi { 17 inherit pname version; 18 hash = "sha256-Cyd3TShfUHo0RYBaBfj7KZj1bXCScPeLiSCLZbDYSRc="; 19 }; 20 21 build-system = [ setuptools ]; 22 23 dependencies = [ ply ]; 24 25 nativeCheckInputs = [ pytestCheckHook ]; 26 27 pythonImportsCheck = [ "phply" ]; 28 29 meta = with lib; { 30 description = "Lexer and parser for PHP source implemented using PLY"; 31 homepage = "https://github.com/viraptor/phply"; 32 license = licenses.bsd3; 33 maintainers = with maintainers; [ erictapen ]; 34 }; 35}