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

42 lines
890 B
Nix
Raw Normal View History

{ lib, buildPythonPackage, isPy3k, fetchPypi
, configparser
, faker
, future
, mock
, nose
, python-dateutil
, pytz
, pytestCheckHook
, urllib3
}:
2019-01-31 02:38:48 +00:00
buildPythonPackage rec {
pname = "minio";
2020-11-29 14:04:33 +00:00
version = "6.0.2";
disabled = !isPy3k;
2019-01-31 02:38:48 +00:00
src = fetchPypi {
inherit pname version;
2020-11-29 14:04:33 +00:00
sha256 = "acae9bfae0aec1b92025bd63e18135ebb4994c84600716c5323e14cb0c9a0b03";
2019-01-31 02:38:48 +00:00
};
propagatedBuildInputs = [
configparser
future
python-dateutil
pytz
urllib3
];
2019-01-31 02:38:48 +00:00
checkInputs = [ faker mock nose pytestCheckHook ];
2020-09-08 21:57:50 +01:00
# example credentials aren't present
pytestFlagsArray = [ "--ignore=tests/unit/credentials_test.py" ];
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;
};
}