2023-05-04 05:43:34 -04:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
pytestCheckHook,
|
2023-10-15 09:33:03 +02:00
|
|
|
pythonOlder,
|
2024-04-09 20:37:28 +08:00
|
|
|
hatchling,
|
2023-05-04 05:43:34 -04:00
|
|
|
sure,
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py-partiql-parser";
|
2025-01-19 21:17:17 +01:00
|
|
|
version = "0.6.1";
|
2023-10-15 09:33:03 +02:00
|
|
|
pyproject = true;
|
|
|
|
|
2023-07-13 23:21:10 +08:00
|
|
|
disabled = pythonOlder "3.7";
|
2023-05-04 05:43:34 -04:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "getmoto";
|
|
|
|
repo = "py-partiql-parser";
|
2025-01-03 21:24:13 +01:00
|
|
|
tag = version;
|
2025-01-19 21:17:17 +01:00
|
|
|
hash = "sha256-2qCGNRoeMRe5fPzoWFD9umZgUDW6by7jNfO/BByQGwE=";
|
2023-05-04 05:43:34 -04:00
|
|
|
};
|
|
|
|
|
2024-04-09 20:37:28 +08:00
|
|
|
build-system = [ hatchling ];
|
2023-05-04 05:43:34 -04:00
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
sure
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "py_partiql_parser" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
2023-10-15 09:33:59 +02:00
|
|
|
description = "Tokenizer/parser/executor for the PartiQL-language";
|
2023-05-04 05:43:34 -04:00
|
|
|
homepage = "https://github.com/getmoto/py-partiql-parser";
|
2025-01-19 21:17:17 +01:00
|
|
|
changelog = "https://github.com/getmoto/py-partiql-parser/blob/${src.tag}/CHANGELOG.md";
|
2023-05-04 05:43:34 -04:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ centromere ];
|
|
|
|
};
|
|
|
|
}
|