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