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

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

64 lines
1.1 KiB
Nix
Raw Normal View History

2021-06-06 10:46:02 +00:00
{ lib
, buildPythonPackage
, certifi
, configparser
, faker
2021-06-06 10:46:02 +00:00
, fetchFromGitHub
, future
, mock
, nose
2021-06-06 10:46:02 +00:00
, pytestCheckHook
, python-dateutil
2021-06-06 10:46:02 +00:00
, pythonOlder
, pytz
, urllib3
}:
2019-01-31 02:38:48 +00:00
buildPythonPackage rec {
pname = "minio";
version = "7.1.13";
2021-12-03 08:57:09 +00:00
format = "setuptools";
disabled = pythonOlder "3.7";
2019-01-31 02:38:48 +00:00
2021-06-06 10:46:02 +00:00
src = fetchFromGitHub {
owner = "minio";
repo = "minio-py";
2022-07-16 10:59:18 +00:00
rev = "refs/tags/${version}";
hash = "sha256-Kn/I5q079b4vqi+jL/pcVKMqGgs+PYgMoByX8ZzgZ5M=";
2019-01-31 02:38:48 +00:00
};
propagatedBuildInputs = [
2021-06-06 10:46:02 +00:00
certifi
configparser
future
python-dateutil
pytz
urllib3
];
2019-01-31 02:38:48 +00:00
nativeCheckInputs = [
2021-06-06 10:46:02 +00:00
faker
mock
nose
pytestCheckHook
];
disabledTestPaths = [
2021-12-03 08:57:09 +00:00
# example credentials aren't present
2021-06-06 10:46:02 +00:00
"tests/unit/credentials_test.py"
];
2021-12-03 08:57:09 +00:00
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";
changelog = "https://github.com/minio/minio-py/releases/tag/${version}";
2019-01-31 02:38:48 +00:00
maintainers = with maintainers; [ peterromfeldhk ];
license = licenses.asl20;
};
}