2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
boto3,
|
|
|
|
amazon-ion,
|
|
|
|
ionhash,
|
|
|
|
pytestCheckHook,
|
|
|
|
}:
|
2022-04-03 18:54:34 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyqldb";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "3.2.3";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2022-04-03 18:54:34 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awslabs";
|
|
|
|
repo = "amazon-qldb-driver-python";
|
2023-07-15 17:15:38 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-TyIXvk3ZJn5J2SBFDTPJpSnGFOFheXIqR2daL5npOk8=";
|
2022-04-03 18:54:34 +00:00
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
boto3
|
|
|
|
amazon-ion
|
|
|
|
ionhash
|
|
|
|
];
|
2022-04-03 18:54:34 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2022-04-03 18:54:34 +00:00
|
|
|
|
|
|
|
preCheck = ''
|
|
|
|
export AWS_DEFAULT_REGION=us-east-1
|
|
|
|
'';
|
|
|
|
|
|
|
|
pytestFlagsArray = [ "tests/unit" ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyqldb" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python driver for Amazon QLDB";
|
|
|
|
homepage = "https://github.com/awslabs/amazon-qldb-driver-python";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = [ maintainers.terlar ];
|
|
|
|
};
|
|
|
|
}
|