nixpkgs/pkgs/development/python-modules/minio/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

64 lines
1.1 KiB
Nix

{ lib
, buildPythonPackage
, certifi
, configparser
, faker
, fetchFromGitHub
, future
, mock
, nose
, pytestCheckHook
, python-dateutil
, pythonOlder
, pytz
, urllib3
}:
buildPythonPackage rec {
pname = "minio";
version = "7.1.13";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "minio";
repo = "minio-py";
rev = "refs/tags/${version}";
hash = "sha256-Kn/I5q079b4vqi+jL/pcVKMqGgs+PYgMoByX8ZzgZ5M=";
};
propagatedBuildInputs = [
certifi
configparser
future
python-dateutil
pytz
urllib3
];
nativeCheckInputs = [
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";
changelog = "https://github.com/minio/minio-py/releases/tag/${version}";
maintainers = with maintainers; [ peterromfeldhk ];
license = licenses.asl20;
};
}