python3Packages.krb5: init at 0.6.0

This causes pyspnego to get this krb5 package instead of the top-level
system krb5 package. That's actually intentional because pyspnego's
current dependency on the system package is incorrect.
This commit is contained in:
Elliot Cameron
2024-08-13 19:35:00 -04:00
parent 79d9127ea6
commit bbdd87069f
2 changed files with 50 additions and 0 deletions
@@ -0,0 +1,46 @@
{
lib,
buildPythonPackage,
cython,
fetchPypi,
k5test,
krb5-c, # C krb5 library
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "krb5";
version = "0.6.0";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-cSugkvvjoo7BiCC7Gx7SzBA3t1xccDP5cMaoyXu9Egk=";
};
build-system = [
cython
setuptools
];
nativeBuildInputs = [ krb5-c ];
nativeCheckInputs = [
k5test
pytestCheckHook
];
pythonImportsCheck = [ "krb5" ];
meta = with lib; {
changelog = "https://github.com/jborean93/pykrb5/blob/v${version}/CHANGELOG.md";
description = "Kerberos API bindings for Python";
homepage = "https://github.com/jborean93/pykrb5";
license = licenses.mit;
maintainers = teams.deshaw.members;
};
}
+4
View File
@@ -6686,6 +6686,10 @@ self: super: with self; {
krakenex = callPackage ../development/python-modules/krakenex { };
krb5 = callPackage ../development/python-modules/krb5 {
krb5-c = pkgs.krb5;
};
krfzf-py = callPackage ../development/python-modules/krfzf-py { };
kserve = callPackage ../development/python-modules/kserve { };