blob: bbe8b1b468ee5165c294681d376e7446a9feade8 (
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
, pythonOlder
, fetchFromGitHub
, azure-common
, azure-core
, azure-storage-blob
, boto3
, google-cloud-storage
, requests
, moto
, parameterizedtestcase
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "smart-open";
version = "5.2.1";
disabled = pythonOlder "3.5";
src = fetchFromGitHub {
owner = "RaRe-Technologies";
repo = "smart_open";
rev = "v${version}";
sha256 = "13a1qsb4vwrhx45hz4qcl0d7bgv20ai5vsy7cq0q6qbj212nff19";
};
propagatedBuildInputs = [
azure-common
azure-core
azure-storage-blob
boto3
google-cloud-storage
requests
];
checkInputs = [
moto
parameterizedtestcase
pytestCheckHook
];
pytestFlagsArray = [ "smart_open" ];
disabledTestPaths = [
"smart_open/tests/test_http.py"
"smart_open/tests/test_s3.py"
"smart_open/tests/test_s3_version.py"
"smart_open/tests/test_sanity.py"
];
disabledTests = [
"test_compression_invalid"
"test_gs_uri_contains_question_mark"
"test_gzip_compress_sanity"
"test_http"
"test_ignore_ext"
"test_initialize_write"
"test_read_explicit"
"test_s3_handles_querystring"
"test_s3_uri_contains_question_mark"
"test_webhdfs"
"test_write"
];
pythonImportsCheck = [ "smart_open" ];
meta = with lib; {
description = "Library for efficient streaming of very large file";
homepage = "https://github.com/RaRe-Technologies/smart_open";
license = licenses.mit;
maintainers = with maintainers; [ jyp ];
};
}
|