fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
45 lines
873 B
Nix
45 lines
873 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
boto3,
|
|
amazon-ion,
|
|
ionhash,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyqldb";
|
|
version = "3.2.3";
|
|
format = "setuptools";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "awslabs";
|
|
repo = "amazon-qldb-driver-python";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-TyIXvk3ZJn5J2SBFDTPJpSnGFOFheXIqR2daL5npOk8=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
boto3
|
|
amazon-ion
|
|
ionhash
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
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 ];
|
|
};
|
|
}
|