mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 07:32:58 +00:00
Merge pull request #216884 from fabaff/databricks-sql-connector-fix
python310Packages.databricks-sql-connector: 2.2.1 -> 2.3.0, python310Packages.python-lz4: 4.3.1 -> 4.3.2
This commit is contained in:
commit
fb4a3e4175
@ -1,49 +1,67 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, thrift
|
, lz4
|
||||||
|
, numpy
|
||||||
|
, oauthlib
|
||||||
, pandas
|
, pandas
|
||||||
, pyarrow
|
|
||||||
, poetry-core
|
, poetry-core
|
||||||
|
, pyarrow
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, pythonOlder
|
||||||
|
, pythonRelaxDepsHook
|
||||||
|
, thrift
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "databricks-sql-connector";
|
pname = "databricks-sql-connector";
|
||||||
version = "2.2.1";
|
version = "2.3.0";
|
||||||
format = "pyproject";
|
format = "pyproject";
|
||||||
|
|
||||||
|
disabled = pythonOlder "3.7";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "databricks";
|
owner = "databricks";
|
||||||
repo = "databricks-sql-python";
|
repo = "databricks-sql-python";
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "sha256-EMLUXGeVGIXFeaMvaJ+crivRZtOt7W/LCycIO2gwqXA=";
|
hash = "sha256-XyDkL/bGnivx7MRG86vGS69mKdrWw7kKiuvQfBYFKVQ=";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = ''
|
pythonRelaxDeps = [
|
||||||
substituteInPlace pyproject.toml \
|
"numpy"
|
||||||
--replace 'thrift = "^0.13.0"' 'thrift = ">=0.13.0,<1.0.0"'
|
"thrift"
|
||||||
'';
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
poetry-core
|
poetry-core
|
||||||
|
pythonRelaxDepsHook
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
thrift
|
lz4
|
||||||
|
numpy
|
||||||
|
oauthlib
|
||||||
pandas
|
pandas
|
||||||
pyarrow
|
pyarrow
|
||||||
|
thrift
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
pytestFlagsArray = [ "tests/unit" ];
|
pytestFlagsArray = [
|
||||||
|
"tests/unit"
|
||||||
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"databricks"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "Databricks SQL Connector for Python";
|
description = "Databricks SQL Connector for Python";
|
||||||
homepage = "https://docs.databricks.com/dev-tools/python-sql-connector.html";
|
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;
|
license = licenses.asl20;
|
||||||
maintainers = with maintainers; [ harvidsen ];
|
maintainers = with maintainers; [ harvidsen ];
|
||||||
};
|
};
|
||||||
|
@ -1,21 +1,17 @@
|
|||||||
{ lib
|
{ lib
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
, fetchFromGitHub
|
||||||
, pythonOlder
|
|
||||||
, python
|
|
||||||
|
|
||||||
# native inputs
|
|
||||||
, pkgconfig
|
, pkgconfig
|
||||||
, setuptools-scm
|
|
||||||
|
|
||||||
# tests
|
|
||||||
, psutil
|
, psutil
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
|
, python
|
||||||
|
, pythonOlder
|
||||||
|
, setuptools-scm
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "python-lz4";
|
pname = "python-lz4";
|
||||||
version = "4.3.1";
|
version = "4.3.2";
|
||||||
format = "setuptools";
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = pythonOlder "3.5";
|
disabled = pythonOlder "3.5";
|
||||||
@ -25,7 +21,7 @@ buildPythonPackage rec {
|
|||||||
owner = pname;
|
owner = pname;
|
||||||
repo = pname;
|
repo = pname;
|
||||||
rev = "refs/tags/v${version}";
|
rev = "refs/tags/v${version}";
|
||||||
sha256 = "sha256-XWkCZhBapjtzH3g3t+xXiB2f54p3Xw0+UBKVNH+gGHQ=";
|
sha256 = "sha256-aVnXCrTh+0Ip+FgYWN7hLw8N3iQCmXSywhReD5RTUfI=";
|
||||||
};
|
};
|
||||||
|
|
||||||
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
SETUPTOOLS_SCM_PRETEND_VERSION = version;
|
||||||
@ -35,8 +31,8 @@ buildPythonPackage rec {
|
|||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
setuptools-scm
|
|
||||||
pkgconfig
|
pkgconfig
|
||||||
|
setuptools-scm
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportsCheck = [
|
pythonImportsCheck = [
|
||||||
@ -47,8 +43,8 @@ buildPythonPackage rec {
|
|||||||
];
|
];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
|
||||||
psutil
|
psutil
|
||||||
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
# for lz4.steam
|
# for lz4.steam
|
||||||
@ -63,6 +59,7 @@ buildPythonPackage rec {
|
|||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "LZ4 Bindings for Python";
|
description = "LZ4 Bindings for Python";
|
||||||
homepage = "https://github.com/python-lz4/python-lz4";
|
homepage = "https://github.com/python-lz4/python-lz4";
|
||||||
|
changelog = "https://github.com/python-lz4/python-lz4/releases/tag/v${version}";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = with maintainers; [ costrouc ];
|
maintainers = with maintainers; [ costrouc ];
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user