mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
60 lines
1.0 KiB
Nix
60 lines
1.0 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.3.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "RaRe-Technologies";
|
|
repo = "smart_open";
|
|
rev = "refs/tags/v${version}";
|
|
sha256 = "sha256-sVKrCph5M7xsE7gtzsP/eVEbZyFfoucW3p30YYpwVFI=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|