Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

python311Packages.connectorx: init at 0.3.3 #312884

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions maintainers/maintainer-list.nix
Original file line number Diff line number Diff line change
Expand Up @@ -3854,6 +3854,12 @@
github = "CnTeng";
githubId = 56501688;
};
coastalwhite = {
name = "Gijs Burghoorn";
email = "[email protected]";
github = "coastalwhite";
githubId = 6944009;
};
CobaltCause = {
name = "Charles Hall";
email = "[email protected]";
Expand Down
59 changes: 59 additions & 0 deletions pkgs/development/python-modules/connectorx/default.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
{ lib, buildPythonPackage, rustPlatform, pytestCheckHook,

fetchFromGitHub,

krb5, openssl,
coastalwhite marked this conversation as resolved.
Show resolved Hide resolved

libkrb5, }:
buildPythonPackage rec {
pname = "connectorx";
version = "0.3.3";
pyproject = true;

src = fetchFromGitHub {
owner = "sfu-db";
repo = "connector-x";
rev = "v${version}";
coastalwhite marked this conversation as resolved.
Show resolved Hide resolved
hash = "sha256-L/tI2Lux+UnXZrpBxXX193pvb34hr5kqWo0Ncb1V+R0=";
};

sourceRoot = "${src.name}/connectorx-python";

cargoDeps = rustPlatform.fetchCargoTarball {
inherit src sourceRoot;
name = "${pname}-python-${version}";
hash = "sha256-zeBYQXqCb/KXth+QG0n2yUZ1D6JNseEw+ru3xX04zts=";
};

env = {
# needed for openssl-sys
OPENSSL_NO_VENDOR = 1;
OPENSSL_LIB_DIR = "${lib.getLib openssl}/lib";
OPENSSL_DIR = "${lib.getDev openssl}";
};

nativeBuildInputs = [
krb5 # needed for `krb5-config` during libgssapi-sys

rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
coastalwhite marked this conversation as resolved.
Show resolved Hide resolved
rustPlatform.bindgenHook
];

nativeCheckInputs = [ pytestCheckHook ];

buildInputs = [
libkrb5 # needed for libgssapi-sys
openssl # needed for openssl-sys
];

pythonImportsCheck = [ "connectorx" ];

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

meta = {
description =
"Fastest library to load data from DB to DataFrames in Rust and Python";
coastalwhite marked this conversation as resolved.
Show resolved Hide resolved
homepage = "https://sfu-db.github.io/connector-x";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ coastalwhite ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2065,6 +2065,8 @@ self: super: with self; {

connection-pool = callPackage ../development/python-modules/connection-pool { };

connectorx = callPackage ../development/python-modules/connectorx {};

connio = callPackage ../development/python-modules/connio { };

conway-polynomials = callPackage ../development/python-modules/conway-polynomials {};
Expand Down
Loading