38 lines
831 B
Nix
38 lines
831 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, boto
|
|
, boto3
|
|
, bz2file
|
|
, mock
|
|
, moto
|
|
, requests
|
|
, responses
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "smart_open";
|
|
version = "4.1.0";
|
|
disabled = pythonOlder "3.5";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "26af5c1a3f2b76aab8c3200310f0fc783790ec5a231ffeec102e620acdd6262e";
|
|
};
|
|
|
|
# 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 ];
|
|
meta = {
|
|
license = lib.licenses.mit;
|
|
description = "smart_open is a Python 2 & Python 3 library for efficient streaming of very large file";
|
|
maintainers = with lib.maintainers; [ jyp ];
|
|
};
|
|
}
|