2023-11-16 04:20:00 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, setuptools
|
|
|
|
, boto
|
|
|
|
, inflection
|
|
|
|
, requests
|
|
|
|
, six
|
|
|
|
, urllib3
|
|
|
|
, mock
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2023-11-16 04:20:00 +00:00
|
|
|
pname = "qds-sdk";
|
2021-04-26 19:14:03 +00:00
|
|
|
version = "1.16.1";
|
2023-11-16 04:20:00 +00:00
|
|
|
pyproject = true;
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "qubole";
|
|
|
|
repo = "qds-sdk-py";
|
2023-11-16 04:20:00 +00:00
|
|
|
rev = "refs/tags/V${version}";
|
|
|
|
hash = "sha256-8aPIE2E3Fy2EiBM2FPRyjnJolIBdOzafI3Fvlod5hxU=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeBuildInputs = [
|
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2020-08-20 17:08:02 +00:00
|
|
|
propagatedBuildInputs = [
|
2020-04-24 23:36:52 +00:00
|
|
|
boto
|
|
|
|
inflection
|
|
|
|
requests
|
2020-08-20 17:08:02 +00:00
|
|
|
six
|
|
|
|
urllib3
|
2020-04-24 23:36:52 +00:00
|
|
|
];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook mock ];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"qds_sdk"
|
|
|
|
];
|
2020-08-20 17:08:02 +00:00
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A Python module that provides the tools you need to authenticate with, and use the Qubole Data Service API";
|
|
|
|
homepage = "https://github.com/qubole/qds-sdk-py";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ shahrukh330 ];
|
2023-11-16 04:20:00 +00:00
|
|
|
mainProgram = "qds.py";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|