1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 isPy27,
6 pytestCheckHook,
7 setuptools,
8}:
9buildPythonPackage rec {
10 pname = "snapshot-restore-py";
11 version = "1.0.0";
12 pyproject = true;
13
14 disabled = isPy27;
15
16 src = fetchFromGitHub {
17 owner = "aws";
18 repo = "snapshot-restore-py";
19 tag = "v${version}";
20 hash = "sha256-sixVSQcEqLTUrKxYAM13gzqttWnbXPMII0V/gtXM1IE=";
21 };
22
23 build-system = [ setuptools ];
24
25 nativeCheckInputs = [ pytestCheckHook ];
26
27 pythonImportsCheck = [ "snapshot_restore_py" ];
28
29 meta = {
30 description = "Snapshot Restore for Python library which can be used for registering runtime hooks in Snapstart enabled Python Lambda functions";
31 homepage = "https://github.com/aws/snapshot-restore-py";
32 license = lib.licenses.asl20;
33 maintainers = with lib.maintainers; [ austinbutler ];
34 platforms = lib.platforms.all;
35 };
36}