keepalived add meta.mainProgram (#380296)
[NixPkgs.git] / pkgs / development / python-modules / pyqldb / default.nix
blob484e2d564c4f45b9dcf674a019eae856cb9cc888
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   boto3,
6   amazon-ion,
7   ionhash,
8   pytestCheckHook,
9 }:
11 buildPythonPackage rec {
12   pname = "pyqldb";
13   version = "3.2.4";
14   format = "setuptools";
16   src = fetchFromGitHub {
17     owner = "awslabs";
18     repo = "amazon-qldb-driver-python";
19     tag = "v${version}";
20     hash = "sha256-u8wI8ThD/BA+WI62OvNFmYvcqr018wgrh+5J+p2A6hM=";
21   };
23   propagatedBuildInputs = [
24     boto3
25     amazon-ion
26     ionhash
27   ];
29   nativeCheckInputs = [ pytestCheckHook ];
31   preCheck = ''
32     export AWS_DEFAULT_REGION=us-east-1
33   '';
35   pytestFlagsArray = [ "tests/unit" ];
37   pythonImportsCheck = [ "pyqldb" ];
39   meta = with lib; {
40     description = "Python driver for Amazon QLDB";
41     homepage = "https://github.com/awslabs/amazon-qldb-driver-python";
42     license = licenses.asl20;
43     maintainers = [ maintainers.terlar ];
44   };