1{ 2 lib, 3 buildPythonPackage, 4 fetchFromGitHub, 5 pytestCheckHook, 6 pythonOlder, 7 hatchling, 8 sure, 9}: 10 11buildPythonPackage rec { 12 pname = "py-partiql-parser"; 13 version = "0.5.4"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "getmoto"; 20 repo = "py-partiql-parser"; 21 rev = "refs/tags/${version}"; 22 hash = "sha256-BSqc3xibStb3J6Rua4dDp/eRD5/ns/dU1vGa4vL1Cyo="; 23 }; 24 25 build-system = [ hatchling ]; 26 27 nativeCheckInputs = [ 28 pytestCheckHook 29 sure 30 ]; 31 32 pythonImportsCheck = [ "py_partiql_parser" ]; 33 34 meta = with lib; { 35 description = "A tokenizer/parser/executor for the PartiQL-language"; 36 homepage = "https://github.com/getmoto/py-partiql-parser"; 37 changelog = "https://github.com/getmoto/py-partiql-parser/blob/${version}/CHANGELOG.md"; 38 license = licenses.mit; 39 maintainers = with maintainers; [ centromere ]; 40 }; 41}