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.6.1";
14 pyproject = true;
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "getmoto";
20 repo = "py-partiql-parser";
21 tag = version;
22 hash = "sha256-2qCGNRoeMRe5fPzoWFD9umZgUDW6by7jNfO/BByQGwE=";
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 = "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/${src.tag}/CHANGELOG.md";
38 license = licenses.mit;
39 maintainers = with maintainers; [ centromere ];
40 };
41}