1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pythonOlder,
6 pytestCheckHook,
7 boto3,
8 moto,
9}:
10
11buildPythonPackage rec {
12 pname = "bucketstore";
13 version = "0.2.2";
14 format = "setuptools";
15
16 disabled = pythonOlder "3.7";
17
18 src = fetchFromGitHub {
19 owner = "jpetrucciani";
20 repo = "bucketstore";
21 rev = "refs/tags/${version}";
22 hash = "sha256-BtoyGqFbeBhGQeXnmeSfiuJLZtXFrK26WO0SDlAtKG4=";
23 };
24
25 postPatch = ''
26 substituteInPlace setup.py \
27 --replace "version=__version__," 'version="${version}",'
28 '';
29
30 propagatedBuildInputs = [ boto3 ];
31
32 nativeCheckInputs = [
33 moto
34 pytestCheckHook
35 ];
36
37 pythonImportsCheck = [ "bucketstore" ];
38
39 meta = with lib; {
40 description = "Library for interacting with Amazon S3";
41 homepage = "https://github.com/jpetrucciani/bucketstore";
42 changelog = "https://github.com/jpetrucciani/bucketstore/releases/tag/${version}";
43 license = licenses.mit;
44 maintainers = with maintainers; [ jpetrucciani ];
45 };
46}