1{ lib
2, buildPythonPackage
3, certifi
4, configparser
5, faker
6, fetchFromGitHub
7, future
8, mock
9, nose
10, pytestCheckHook
11, python-dateutil
12, pythonOlder
13, pytz
14, urllib3
15}:
16
17buildPythonPackage rec {
18 pname = "minio";
19 version = "7.1.17";
20 format = "setuptools";
21
22 disabled = pythonOlder "3.7";
23
24 src = fetchFromGitHub {
25 owner = "minio";
26 repo = "minio-py";
27 rev = "refs/tags/${version}";
28 hash = "sha256-I0Q1SkZ1zQ9s2HbMTc2EzUnnOti14zQBxHVJasaukug=";
29 };
30
31 propagatedBuildInputs = [
32 certifi
33 configparser
34 future
35 python-dateutil
36 pytz
37 urllib3
38 ];
39
40 nativeCheckInputs = [
41 faker
42 mock
43 nose
44 pytestCheckHook
45 ];
46
47 disabledTestPaths = [
48 # example credentials aren't present
49 "tests/unit/credentials_test.py"
50 ];
51
52 pythonImportsCheck = [
53 "minio"
54 ];
55
56 meta = with lib; {
57 description = "Simple APIs to access any Amazon S3 compatible object storage server";
58 homepage = "https://github.com/minio/minio-py";
59 changelog = "https://github.com/minio/minio-py/releases/tag/${version}";
60 maintainers = with maintainers; [ peterromfeldhk ];
61 license = licenses.asl20;
62 };
63}