Files
nixpkgs/pkgs/development/python-modules/minio/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

70 lines
1.3 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
argon2-cffi,
certifi,
urllib3,
pycryptodome,
typing-extensions,
# test
faker,
mock,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "minio";
version = "7.2.18";
pyproject = true;
src = fetchFromGitHub {
owner = "minio";
repo = "minio-py";
tag = version;
hash = "sha256-2SmqtCWOwmSxi9vsBvH2bhYiUwc2LyZ/zO2jJpnhPDw=";
};
postPatch = ''
substituteInPlace tests/unit/crypto_test.py \
--replace-fail "assertEquals" "assertEqual"
'';
build-system = [ setuptools ];
dependencies = [
argon2-cffi
certifi
urllib3
pycryptodome
typing-extensions
];
nativeCheckInputs = [
faker
mock
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/${src.tag}";
maintainers = with maintainers; [ peterromfeldhk ];
license = licenses.asl20;
};
}