Skip to content

Commit

Permalink
Incorporate feedback
Browse files Browse the repository at this point in the history
- move maturingBuildHook to build-system
- use pkgs.krb5
  • Loading branch information
coastalwhite committed Dec 24, 2024
1 parent 4d03c1a commit 9873b85
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 10 deletions.
24 changes: 15 additions & 9 deletions pkgs/development/python-modules/connectorx/default.nix
Original file line number Diff line number Diff line change
@@ -1,10 +1,13 @@
{ lib, buildPythonPackage, rustPlatform, pytestCheckHook,

fetchFromGitHub,

krb5, openssl,

libkrb5, }:
{ lib
, buildPythonPackage
, rustPlatform
, pytestCheckHook
, fetchFromGitHub
, krb5-c
, openssl
, libkrb5
,
}:
buildPythonPackage rec {
pname = "connectorx";
version = "0.3.3";
Expand Down Expand Up @@ -32,11 +35,14 @@ buildPythonPackage rec {
OPENSSL_DIR = "${lib.getDev openssl}";
};

build-system = [
rustPlatform.maturinBuildHook
];

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

rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
rustPlatform.bindgenHook
];

Expand Down
4 changes: 3 additions & 1 deletion pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2065,7 +2065,9 @@ self: super: with self; {

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

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

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

Expand Down

0 comments on commit 9873b85

Please sign in to comment.