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