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.1";
20 disabled = pythonOlder "3.6";
21
22 src = fetchFromGitHub {
23 owner = "minio";
24 repo = "minio-py";
25 rev = version;
26 sha256 = "sha256-dUNx6r7KppfeHefa1IeJPXSEMyElPk+RAGdn447ax1g=";
27 };
28
29 propagatedBuildInputs = [
30 certifi
31 configparser
32 future
33 python-dateutil
34 pytz
35 urllib3
36 ];
37
38 checkInputs = [
39 faker
40 mock
41 nose
42 pytestCheckHook
43 ];
44
45 # example credentials aren't present
46 disabledTestPaths = [
47 "tests/unit/credentials_test.py"
48 ];
49
50 pythonImportsCheck = [ "minio" ];
51
52 meta = with lib; {
53 description = "Simple APIs to access any Amazon S3 compatible object storage server";
54 homepage = "https://github.com/minio/minio-py";
55 maintainers = with maintainers; [ peterromfeldhk ];
56 license = licenses.asl20;
57 };
58}