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

59 lines
1019 B
Nix
Raw Normal View History

2021-06-06 11:46:02 +01:00
{ lib
, buildPythonPackage
, certifi
, configparser
, faker
2021-06-06 11:46:02 +01:00
, fetchFromGitHub
, future
, mock
, nose
2021-06-06 11:46:02 +01:00
, pytestCheckHook
, python-dateutil
2021-06-06 11:46:02 +01:00
, pythonOlder
, pytz
, urllib3
}:
2019-01-31 02:38:48 +00:00
buildPythonPackage rec {
pname = "minio";
2021-06-18 22:04:09 +01:00
version = "7.0.4";
2021-06-06 11:46:02 +01:00
disabled = pythonOlder "3.6";
2019-01-31 02:38:48 +00:00
2021-06-06 11:46:02 +01:00
src = fetchFromGitHub {
owner = "minio";
repo = "minio-py";
rev = version;
2021-06-18 22:04:09 +01:00
sha256 = "sha256-4O6WhBoMNpqv1OEewkbA5a8hYH56liF7GrfxkooQ6Fo=";
2019-01-31 02:38:48 +00:00
};
propagatedBuildInputs = [
2021-06-06 11:46:02 +01:00
certifi
configparser
future
python-dateutil
pytz
urllib3
];
2019-01-31 02:38:48 +00:00
2021-06-06 11:46:02 +01:00
checkInputs = [
faker
mock
nose
pytestCheckHook
];
2020-09-08 21:57:50 +01:00
# example credentials aren't present
2021-06-06 11:46:02 +01:00
disabledTestPaths = [
"tests/unit/credentials_test.py"
];
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";
homepage = "https://github.com/minio/minio-py";
2019-01-31 02:38:48 +00:00
maintainers = with maintainers; [ peterromfeldhk ];
license = licenses.asl20;
};
}