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-07-14 22:03:04 +00:00
|
|
|
version = "7.1.0";
|
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-07-14 22:03:04 +00:00
|
|
|
sha256 = "sha256-0N9hPjGGYHFyGzEWWDnW7KsPQtv0y/j/lCBLNC9IlpA=";
|
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;
|
|
|
|
};
|
|
|
|
}
|