depot/third_party/nixpkgs/pkgs/development/python-modules/smart-open/default.nix
Default email b5f92a349c Project import generated by Copybara.
GitOrigin-RevId: 7c9cc5a6e5d38010801741ac830a3f8fd667a7a0
2023-10-19 15:55:26 +02:00

59 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchFromGitHub
, azure-common
, azure-core
, azure-storage-blob
, boto3
, google-cloud-storage
, requests
, moto
, paramiko
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "smart-open";
version = "6.4.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "RaRe-Technologies";
repo = "smart_open";
rev = "refs/tags/v${version}";
hash = "sha256-fciNaVw603FAcgrSrND+LEycJffmnFQij2ZpatYZ/e4=";
};
propagatedBuildInputs = [
azure-common
azure-core
azure-storage-blob
boto3
google-cloud-storage
requests
];
nativeCheckInputs = [
moto
paramiko
pytestCheckHook
];
pytestFlagsArray = [
"smart_open"
];
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 ];
};
}