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