Commit 82799537 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python310Packages.databricks-sql-connector: add changelog to meta

parent 4dc28559
Loading
Loading
Loading
Loading
+12 −2
Original line number Diff line number Diff line
@@ -6,6 +6,7 @@
, pyarrow
, poetry-core
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
@@ -13,11 +14,13 @@ buildPythonPackage rec {
  version = "2.2.1";
  format = "pyproject";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "databricks";
    repo = "databricks-sql-python";
    rev = "refs/tags/v${version}";
    sha256 = "sha256-EMLUXGeVGIXFeaMvaJ+crivRZtOt7W/LCycIO2gwqXA=";
    hash = "sha256-EMLUXGeVGIXFeaMvaJ+crivRZtOt7W/LCycIO2gwqXA=";
  };

  postPatch = ''
@@ -39,11 +42,18 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

  pytestFlagsArray = [ "tests/unit" ];
  pytestFlagsArray = [
    "tests/unit"
  ];

  pythonImportsCheck = [
    "databricks"
  ];

  meta = with lib; {
    description = "Databricks SQL Connector for Python";
    homepage = "https://docs.databricks.com/dev-tools/python-sql-connector.html";
    changelog = "https://github.com/databricks/databricks-sql-python/blob/v${version}/CHANGELOG.md";
    license = licenses.asl20;
    maintainers = with maintainers; [ harvidsen ];
  };