2019-10-01 16:38:59 +01:00
|
|
|
{ lib,
|
|
|
|
fetchFromGitHub,
|
|
|
|
buildPythonPackage,
|
|
|
|
boto,
|
|
|
|
inflection,
|
|
|
|
pytest,
|
|
|
|
mock,
|
|
|
|
requests,
|
|
|
|
six,
|
|
|
|
urllib3 }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "qds_sdk";
|
2020-07-31 17:41:39 +01:00
|
|
|
version = "1.15.2";
|
2019-10-01 16:38:59 +01:00
|
|
|
|
|
|
|
# pypi does not contain tests, using github sources instead
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "qubole";
|
|
|
|
repo = "qds-sdk-py";
|
|
|
|
rev = "V${version}";
|
2020-07-31 17:41:39 +01:00
|
|
|
sha256 = "0xxg9s0y6fz7vb1kab4q93q7ryi71z8x6q9qspm6s506yr3mc67l";
|
2019-10-01 16:38:59 +01:00
|
|
|
};
|
|
|
|
|
2020-07-31 17:41:39 +01:00
|
|
|
propagatedBuildInputs = [
|
2019-10-01 16:38:59 +01:00
|
|
|
boto
|
|
|
|
inflection
|
|
|
|
requests
|
2020-07-31 17:41:39 +01:00
|
|
|
six
|
|
|
|
urllib3
|
2019-10-01 16:38:59 +01:00
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock ];
|
|
|
|
checkPhase = ''
|
|
|
|
py.test --disable-pytest-warnings tests
|
|
|
|
'';
|
2020-07-31 17:41:39 +01:00
|
|
|
|
2019-10-01 16:38:59 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|