2017-06-12 10:13:42 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-08-29 11:08:12 -07:00
|
|
|
, pythonOlder
|
2017-06-12 10:13:42 +02:00
|
|
|
, boto
|
2018-03-30 23:02:01 +02:00
|
|
|
, boto3
|
2017-06-12 10:13:42 +02:00
|
|
|
, bz2file
|
2018-03-30 23:02:01 +02:00
|
|
|
, mock
|
2017-06-12 10:13:42 +02:00
|
|
|
, moto
|
|
|
|
, requests
|
|
|
|
, responses
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "smart_open";
|
2021-03-24 10:28:28 +01:00
|
|
|
version = "4.2.0";
|
2020-08-29 11:08:12 -07:00
|
|
|
disabled = pythonOlder "3.5";
|
2017-06-12 10:13:42 +02:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-03-24 10:28:28 +01:00
|
|
|
sha256 = "d9f5a0f173ccb9bbae528db5a3804f57145815774f77ef755b9b0f3b4b2a9dcb";
|
2017-06-12 10:13:42 +02:00
|
|
|
};
|
|
|
|
|
2018-03-30 23:02:01 +02:00
|
|
|
# moto>=1.0.0 is backwards-incompatible and some tests fail with it,
|
|
|
|
# so disable tests for now
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
checkInputs = [ mock moto responses ];
|
|
|
|
|
|
|
|
# upstream code requires both boto and boto3
|
|
|
|
propagatedBuildInputs = [ boto boto3 bz2file requests ];
|
2017-06-12 10:13:42 +02:00
|
|
|
meta = {
|
|
|
|
license = lib.licenses.mit;
|
|
|
|
description = "smart_open is a Python 2 & Python 3 library for efficient streaming of very large file";
|
2017-09-12 09:59:28 +02:00
|
|
|
maintainers = with lib.maintainers; [ jyp ];
|
2017-06-12 10:13:42 +02:00
|
|
|
};
|
|
|
|
}
|