841d9c7fc1
GitOrigin-RevId: 3a8d7958a610cd3fec3a6f424480f91a1b259185
58 lines
1,019 B
Nix
58 lines
1,019 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, certifi
|
|
, configparser
|
|
, faker
|
|
, fetchFromGitHub
|
|
, future
|
|
, mock
|
|
, nose
|
|
, pytestCheckHook
|
|
, python-dateutil
|
|
, pythonOlder
|
|
, pytz
|
|
, urllib3
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "minio";
|
|
version = "7.0.4";
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "minio";
|
|
repo = "minio-py";
|
|
rev = version;
|
|
sha256 = "sha256-4O6WhBoMNpqv1OEewkbA5a8hYH56liF7GrfxkooQ6Fo=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
certifi
|
|
configparser
|
|
future
|
|
python-dateutil
|
|
pytz
|
|
urllib3
|
|
];
|
|
|
|
checkInputs = [
|
|
faker
|
|
mock
|
|
nose
|
|
pytestCheckHook
|
|
];
|
|
|
|
# example credentials aren't present
|
|
disabledTestPaths = [
|
|
"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;
|
|
};
|
|
}
|