summary refs log tree commit diff
path: root/pkgs/development/python-modules/smart-open/default.nix
blob: 051d6c97397d69c35fbb5996f0e63daf2e54cfa4 (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
{ lib
, buildPythonPackage
, fetchPypi
, pythonOlder
, boto
, boto3
, bz2file
, mock
, moto
, requests
, responses
}:

buildPythonPackage rec {
  pname = "smart-open";
  version = "4.2.0";
  disabled = pythonOlder "3.5";

  src = fetchPypi {
    pname = "smart_open";
    inherit version;
    sha256 = "d9f5a0f173ccb9bbae528db5a3804f57145815774f77ef755b9b0f3b4b2a9dcb";
  };

  # 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 = "Library for efficient streaming of very large file";
    maintainers = with lib.maintainers; [ jyp ];
  };
}