02cf88bb76
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
62 lines
1 KiB
Nix
62 lines
1 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, certifi
|
|
, configparser
|
|
, faker
|
|
, fetchFromGitHub
|
|
, future
|
|
, mock
|
|
, nose
|
|
, pytestCheckHook
|
|
, python-dateutil
|
|
, pythonOlder
|
|
, pytz
|
|
, urllib3
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "minio";
|
|
version = "7.1.10";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "minio";
|
|
repo = "minio-py";
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-od+I3rPLyLYbHAadWks5ccRkmAqhwn4+geRKq0qSnAs=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
certifi
|
|
configparser
|
|
future
|
|
python-dateutil
|
|
pytz
|
|
urllib3
|
|
];
|
|
|
|
checkInputs = [
|
|
faker
|
|
mock
|
|
nose
|
|
pytestCheckHook
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# example credentials aren't present
|
|
"tests/unit/credentials_test.py"
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"minio"
|
|
];
|
|
|
|
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;
|
|
};
|
|
}
|