2023-05-04 05:43:34 -04:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, nix-update-script
|
|
|
|
, pytestCheckHook
|
2023-10-15 09:33:03 +02:00
|
|
|
, pythonOlder
|
2023-05-04 05:43:34 -04:00
|
|
|
, setuptools
|
|
|
|
, sure
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "py-partiql-parser";
|
2023-10-15 06:22:53 +00:00
|
|
|
version = "0.3.8";
|
2023-10-15 09:33:03 +02:00
|
|
|
pyproject = true;
|
|
|
|
|
|
|
|
disable = pythonOlder "3.7";
|
2023-05-04 05:43:34 -04:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "getmoto";
|
|
|
|
repo = "py-partiql-parser";
|
|
|
|
rev = "refs/tags/${version}";
|
2023-10-15 06:22:53 +00:00
|
|
|
hash = "sha256-uIO06RRuUuE9qCEg/tTcn68i7vaFAAeFhxdxW9WAbuw=";
|
2023-05-04 05:43:34 -04:00
|
|
|
};
|
|
|
|
|
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
sure
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"py_partiql_parser"
|
|
|
|
];
|
|
|
|
|
|
|
|
passthru = {
|
|
|
|
updateScript = nix-update-script { };
|
|
|
|
};
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A tokenizer/parser/executor for the PartiQL-language, in Python";
|
|
|
|
homepage = "https://github.com/getmoto/py-partiql-parser";
|
|
|
|
changelog = "https://github.com/getmoto/py-partiql-parser/blob/${version}/CHANGELOG.md";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ centromere ];
|
|
|
|
};
|
|
|
|
}
|