2021-06-06 10:46:02 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, certifi
|
2020-06-03 06:07:51 +00:00
|
|
|
, configparser
|
|
|
|
, faker
|
2021-06-06 10:46:02 +00:00
|
|
|
, fetchFromGitHub
|
2020-06-03 06:07:51 +00:00
|
|
|
, future
|
|
|
|
, mock
|
|
|
|
, nose
|
2021-06-06 10:46:02 +00:00
|
|
|
, pytestCheckHook
|
2020-06-03 06:07:51 +00:00
|
|
|
, python-dateutil
|
2021-06-06 10:46:02 +00:00
|
|
|
, pythonOlder
|
2020-06-03 06:07:51 +00:00
|
|
|
, pytz
|
|
|
|
, urllib3
|
|
|
|
}:
|
2019-01-31 02:38:48 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "minio";
|
2023-01-08 20:34:19 +00:00
|
|
|
version = "7.1.13";
|
2021-12-03 08:57:09 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2022-09-29 06:55:18 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2019-01-31 02:38:48 +00:00
|
|
|
|
2021-06-06 10:46:02 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "minio";
|
|
|
|
repo = "minio-py";
|
2022-07-16 10:59:18 +00:00
|
|
|
rev = "refs/tags/${version}";
|
2023-01-08 20:34:19 +00:00
|
|
|
hash = "sha256-Kn/I5q079b4vqi+jL/pcVKMqGgs+PYgMoByX8ZzgZ5M=";
|
2019-01-31 02:38:48 +00:00
|
|
|
};
|
|
|
|
|
2020-06-03 06:07:51 +00:00
|
|
|
propagatedBuildInputs = [
|
2021-06-06 10:46:02 +00:00
|
|
|
certifi
|
2020-06-03 06:07:51 +00:00
|
|
|
configparser
|
|
|
|
future
|
|
|
|
python-dateutil
|
|
|
|
pytz
|
|
|
|
urllib3
|
|
|
|
];
|
2019-01-31 02:38:48 +00:00
|
|
|
|
2023-01-21 12:00:00 +00:00
|
|
|
nativeCheckInputs = [
|
2021-06-06 10:46:02 +00:00
|
|
|
faker
|
|
|
|
mock
|
|
|
|
nose
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTestPaths = [
|
2021-12-03 08:57:09 +00:00
|
|
|
# example credentials aren't present
|
2021-06-06 10:46:02 +00:00
|
|
|
"tests/unit/credentials_test.py"
|
|
|
|
];
|
|
|
|
|
2021-12-03 08:57:09 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"minio"
|
|
|
|
];
|
2019-01-31 02:38:48 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Simple APIs to access any Amazon S3 compatible object storage server";
|
2020-04-01 01:11:51 +00:00
|
|
|
homepage = "https://github.com/minio/minio-py";
|
2023-01-09 07:36:40 +00:00
|
|
|
changelog = "https://github.com/minio/minio-py/releases/tag/${version}";
|
2019-01-31 02:38:48 +00:00
|
|
|
maintainers = with maintainers; [ peterromfeldhk ];
|
|
|
|
license = licenses.asl20;
|
|
|
|
};
|
|
|
|
}
|