1{ lib, buildPythonPackage, fetchFromGitHub, boto3, amazon-ion, ionhash, pytestCheckHook }:
2
3buildPythonPackage rec {
4 pname = "pyqldb";
5 version = "3.2.3";
6
7 src = fetchFromGitHub {
8 owner = "awslabs";
9 repo = "amazon-qldb-driver-python";
10 rev = "refs/tags/v${version}";
11 hash = "sha256-TyIXvk3ZJn5J2SBFDTPJpSnGFOFheXIqR2daL5npOk8=";
12 };
13
14 propagatedBuildInputs = [ boto3 amazon-ion ionhash ];
15
16 nativeCheckInputs = [ pytestCheckHook ];
17
18 preCheck = ''
19 export AWS_DEFAULT_REGION=us-east-1
20 '';
21
22 pytestFlagsArray = [ "tests/unit" ];
23
24 pythonImportsCheck = [ "pyqldb" ];
25
26 meta = with lib; {
27 description = "Python driver for Amazon QLDB";
28 homepage = "https://github.com/awslabs/amazon-qldb-driver-python";
29 license = licenses.asl20;
30 maintainers = [ maintainers.terlar ];
31 };
32}