2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2020-09-25 04:45:31 +00:00
|
|
|
, pythonOlder
|
2021-07-21 07:28:18 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, azure-common
|
|
|
|
, azure-core
|
|
|
|
, azure-storage-blob
|
2020-04-24 23:36:52 +00:00
|
|
|
, boto3
|
2021-07-21 07:28:18 +00:00
|
|
|
, google-cloud-storage
|
2020-04-24 23:36:52 +00:00
|
|
|
, requests
|
2021-07-21 07:28:18 +00:00
|
|
|
, moto
|
2022-09-30 11:47:45 +00:00
|
|
|
, paramiko
|
2021-07-21 07:28:18 +00:00
|
|
|
, pytestCheckHook
|
2020-04-24 23:36:52 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2021-05-28 09:39:13 +00:00
|
|
|
pname = "smart-open";
|
2022-12-17 10:02:37 +00:00
|
|
|
version = "6.3.0";
|
2022-04-27 09:35:20 +00:00
|
|
|
format = "setuptools";
|
2021-07-21 07:28:18 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "RaRe-Technologies";
|
|
|
|
repo = "smart_open";
|
2022-12-17 10:02:37 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2023-03-15 16:39:30 +00:00
|
|
|
hash = "sha256-sVKrCph5M7xsE7gtzsP/eVEbZyFfoucW3p30YYpwVFI=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
azure-common
|
|
|
|
azure-core
|
|
|
|
azure-storage-blob
|
|
|
|
boto3
|
|
|
|
google-cloud-storage
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-07-21 07:28:18 +00:00
|
|
|
moto
|
2022-09-30 11:47:45 +00:00
|
|
|
paramiko
|
2021-07-21 07:28:18 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
pytestFlagsArray = [
|
|
|
|
"smart_open"
|
2021-07-21 07:28:18 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-04-27 09:35:20 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"smart_open"
|
2021-07-21 07:28:18 +00:00
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-07-21 07:28:18 +00:00
|
|
|
meta = with lib; {
|
2021-05-28 09:39:13 +00:00
|
|
|
description = "Library for efficient streaming of very large file";
|
2021-07-21 07:28:18 +00:00
|
|
|
homepage = "https://github.com/RaRe-Technologies/smart_open";
|
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ jyp ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|