Unverified Commit b3381345 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

Merge pull request #262430 from natsukium/qds-sdk

python311Packages.qds-sdk: rename from qds_sdk
parents 1e48f720 ccebea41
Loading
Loading
Loading
Loading
+26 −18
Original line number Diff line number Diff line
{ lib,
 fetchFromGitHub,
 buildPythonPackage,
 boto,
 inflection,
 pytest,
 mock,
 requests,
 six,
 urllib3 }:
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, boto
, inflection
, requests
, six
, urllib3
, mock
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "qds_sdk";
  pname = "qds-sdk";
  version = "1.16.1";
  pyproject = true;

  # pypi does not contain tests, using github sources instead
  src = fetchFromGitHub {
    owner = "qubole";
    repo = "qds-sdk-py";
    rev = "V${version}";
    sha256 = "05c7g63rcvvi4fgkcfsxh2a6hwlffbs18dhki222s5rpc49wi8zi";
    rev = "refs/tags/V${version}";
    hash = "sha256-8aPIE2E3Fy2EiBM2FPRyjnJolIBdOzafI3Fvlod5hxU=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    boto
    inflection
@@ -29,15 +35,17 @@ buildPythonPackage rec {
    urllib3
  ];

  nativeCheckInputs = [ pytest mock ];
  checkPhase = ''
    py.test --disable-pytest-warnings tests
  '';
  nativeCheckInputs = [ pytestCheckHook mock ];

  pythonImportsCheck = [
    "qds_sdk"
  ];

  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 ];
    mainProgram = "qds.py";
  };
}
+1 −0
Original line number Diff line number Diff line
@@ -351,6 +351,7 @@ mapAliases ({
  PyVirtualDisplay = pyvirtualdisplay; # added 2023-02-19
  pywick = throw "pywick has been removed, since it is no longer maintained"; # added 2023-07-01
  qasm2image = throw "qasm2image is no longer maintained (since November 2018), and is not compatible with the latest pythonPackages.qiskit versions."; # added 2020-12-09
  qds_sdk = qds-sdk; # added 2023-10-21
  Quandl = quandl; # added 2023-02-19
  qiskit-aqua = throw "qiskit-aqua has been removed due to deprecation, with its functionality moved to different qiskit packages";
  rabbitpy = throw "rabbitpy has been removed, since it is unmaintained and broken"; # added 2023-07-01
+1 −1
Original line number Diff line number Diff line
@@ -11857,7 +11857,7 @@ self: super: with self; {
  qdrant-client = callPackage ../development/python-modules/qdrant-client { };
  qds_sdk = callPackage ../development/python-modules/qds_sdk { };
  qds-sdk = callPackage ../development/python-modules/qds-sdk { };
  qgrid = callPackage ../development/python-modules/qgrid { };