mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
63 lines
1.0 KiB
Nix
63 lines
1.0 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, certifi
|
|
, configparser
|
|
, faker
|
|
, fetchFromGitHub
|
|
, future
|
|
, mock
|
|
, nose
|
|
, pytestCheckHook
|
|
, python-dateutil
|
|
, pythonOlder
|
|
, pytz
|
|
, urllib3
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "minio";
|
|
version = "7.1.12";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "minio";
|
|
repo = "minio-py";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-9BjKoBQdkqkNK6StsiP0L3S5Dn8y53K5VghUIpIt46k=";
|
|
};
|
|
|
|
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;
|
|
};
|
|
}
|