567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
69 lines
1.2 KiB
Nix
69 lines
1.2 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.20";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "minio";
|
|
repo = "minio-py";
|
|
tag = version;
|
|
hash = "sha256-k7bMXEwRNqx5a6qz4+Yxs/zMANReHFKU2Ks/GSD4JKo=";
|
|
};
|
|
|
|
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 = {
|
|
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}";
|
|
license = lib.licenses.asl20;
|
|
};
|
|
}
|