Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / bucketstore / default.nix
blobc87345732981aa50904c3c0f4d02579453caec16
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pythonOlder
5 , pytestCheckHook
6 , boto3
7 , moto
8 }:
10 buildPythonPackage rec {
11   pname = "bucketstore";
12   version = "0.2.2";
13   format = "setuptools";
15   disabled = pythonOlder "3.7";
17   src = fetchFromGitHub {
18     owner = "jpetrucciani";
19     repo = "bucketstore";
20     rev = "refs/tags/${version}";
21     hash = "sha256-BtoyGqFbeBhGQeXnmeSfiuJLZtXFrK26WO0SDlAtKG4=";
22   };
24   postPatch = ''
25     substituteInPlace setup.py \
26       --replace "version=__version__," 'version="${version}",'
27   '';
29   propagatedBuildInputs = [
30     boto3
31   ];
33   nativeCheckInputs = [
34     moto
35     pytestCheckHook
36   ];
38   pythonImportsCheck = [
39     "bucketstore"
40   ];
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   };