2022-04-03 18:54:34 +00:00
|
|
|
{ lib, buildPythonPackage, fetchFromGitHub, boto3, amazon-ion, ionhash, pytestCheckHook }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyqldb";
|
|
|
|
version = "3.2.2";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "awslabs";
|
|
|
|
repo = "amazon-qldb-driver-python";
|
|
|
|
rev = "v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-TKf43+k428h8T6ye6mJrnK9D4J1xpIu0QacM7lWJF7w=";
|
2022-04-03 18:54:34 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ boto3 amazon-ion ionhash ];
|
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|