nixpkgs-suyu/pkgs/development/python-modules/minio/default.nix

59 lines
1,019 B
Nix
Raw Normal View History

2021-06-06 12:46:02 +02:00
{ lib
, buildPythonPackage
, certifi
, configparser
, faker
2021-06-06 12:46:02 +02:00
, fetchFromGitHub
, future
, mock
, nose
2021-06-06 12:46:02 +02:00
, pytestCheckHook
, python-dateutil
2021-06-06 12:46:02 +02:00
, pythonOlder
, pytz
, urllib3
}:
2019-01-31 03:38:48 +01:00
buildPythonPackage rec {
pname = "minio";
2021-10-24 18:46:59 +02:00
version = "7.1.1";
2021-06-06 12:46:02 +02:00
disabled = pythonOlder "3.6";
2019-01-31 03:38:48 +01:00
2021-06-06 12:46:02 +02:00
src = fetchFromGitHub {
owner = "minio";
repo = "minio-py";
rev = version;
2021-10-24 18:46:59 +02:00
sha256 = "sha256-dUNx6r7KppfeHefa1IeJPXSEMyElPk+RAGdn447ax1g=";
2019-01-31 03:38:48 +01:00
};
propagatedBuildInputs = [
2021-06-06 12:46:02 +02:00
certifi
configparser
future
python-dateutil
pytz
urllib3
];
2019-01-31 03:38:48 +01:00
2021-06-06 12:46:02 +02:00
checkInputs = [
faker
mock
nose
pytestCheckHook
];
2020-09-08 22:57:50 +02:00
# example credentials aren't present
2021-06-06 12:46:02 +02:00
disabledTestPaths = [
"tests/unit/credentials_test.py"
];
pythonImportsCheck = [ "minio" ];
2019-01-31 03:38:48 +01:00
meta = with lib; {
description = "Simple APIs to access any Amazon S3 compatible object storage server";
homepage = "https://github.com/minio/minio-py";
2019-01-31 03:38:48 +01:00
maintainers = with maintainers; [ peterromfeldhk ];
license = licenses.asl20;
};
}