2021-06-28 23:13:55 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, certifi
|
2020-06-18 07:06:33 +00:00
|
|
|
, configparser
|
|
|
|
, faker
|
2021-06-28 23:13:55 +00:00
|
|
|
, fetchFromGitHub
|
2020-06-18 07:06:33 +00:00
|
|
|
, future
|
|
|
|
, mock
|
|
|
|
, nose
|
2021-06-28 23:13:55 +00:00
|
|
|
, pytestCheckHook
|
2020-06-18 07:06:33 +00:00
|
|
|
, python-dateutil
|
2021-06-28 23:13:55 +00:00
|
|
|
, pythonOlder
|
2020-06-18 07:06:33 +00:00
|
|
|
, pytz
|
|
|
|
, urllib3
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "minio";
|
2021-10-28 06:52:43 +00:00
|
|
|
version = "7.1.1";
|
2021-06-28 23:13:55 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "minio";
|
|
|
|
repo = "minio-py";
|
|
|
|
rev = version;
|
2021-10-28 06:52:43 +00:00
|
|
|
sha256 = "sha256-dUNx6r7KppfeHefa1IeJPXSEMyElPk+RAGdn447ax1g=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-06-18 07:06:33 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-06-28 23:13:55 +00:00
|
|
|
certifi
|
2020-06-18 07:06:33 +00:00
|
|
|
configparser
|
|
|
|
future
|
|
|
|
python-dateutil
|
|
|
|
pytz
|
|
|
|
urllib3
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-06-28 23:13:55 +00:00
|
|
|
checkInputs = [
|
|
|
|
faker
|
|
|
|
mock
|
|
|
|
nose
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2020-09-25 04:45:31 +00:00
|
|
|
# example credentials aren't present
|
2021-06-28 23:13:55 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
"tests/unit/credentials_test.py"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "minio" ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple APIs to access any Amazon S3 compatible object storage server";
|
|
|
|
homepage = "https://github.com/minio/minio-py";
|
|
|
|
maintainers = with maintainers; [ peterromfeldhk ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|