blob: e86f1ae1d7bc436505e7bfc96a5e6af5f1e38cbf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
# build-system
, setuptools
# dependencies
, argon2-cffi
, certifi
, urllib3
, pycryptodome
, typing-extensions
# test
, faker
, mock
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "minio";
version = "7.2.5";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "minio";
repo = "minio-py";
rev = "refs/tags/${version}";
hash = "sha256-Xb6XaGI/bwkhp6YKgoqi5Tbs74pSXc6aJpWVUgG5uR4=";
};
postPatch = ''
substituteInPlace tests/unit/crypto_test.py \
--replace-fail "assertEquals" "assertEqual"
'';
nativeBuildInputs = [
setuptools
];
propagatedBuildInputs = [
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/${version}";
maintainers = with maintainers; [ peterromfeldhk ];
license = licenses.asl20;
};
}
|