2020-04-24 23:36:52 +00:00
|
|
|
{ lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildPythonPackage,
|
|
|
|
boto,
|
|
|
|
inflection,
|
|
|
|
pytest,
|
|
|
|
mock,
|
|
|
|
requests,
|
|
|
|
six,
|
|
|
|
urllib3 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qds_sdk";
|
2021-04-26 19:14:03 +00:00
|
|
|
version = "1.16.1";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
# pypi does not contain tests, using github sources instead
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "qubole";
|
|
|
|
repo = "qds-sdk-py";
|
|
|
|
rev = "V${version}";
|
2021-04-26 19:14:03 +00:00
|
|
|
sha256 = "05c7g63rcvvi4fgkcfsxh2a6hwlffbs18dhki222s5rpc49wi8zi";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
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-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytest mock ];
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = ''
|
|
|
|
py.test --disable-pytest-warnings tests
|
|
|
|
'';
|
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 ];
|
|
|
|
};
|
|
|
|
}
|