Files
nixpkgs/pkgs/development/python-modules/krb5/default.nix
T
2026-02-01 17:40:58 +01:00

54 lines
1.0 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
cython,
fetchPypi,
k5test,
krb5-c, # C krb5 library
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "krb5";
version = "0.9.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-TN0shf9HcBCO2vSP7fGYiM+Vb/N04ul+QPhBKwSMruY=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "Cython ==" "Cython >="
'';
build-system = [
cython
setuptools
];
nativeBuildInputs = [ krb5-c ];
nativeCheckInputs = [
k5test
pytestCheckHook
];
pythonImportsCheck = [ "krb5" ];
meta = {
changelog = "https://github.com/jborean93/pykrb5/blob/v${version}/CHANGELOG.md";
description = "Kerberos API bindings for Python";
homepage = "https://github.com/jborean93/pykrb5";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [
de11n
despsyched
];
broken = stdenv.hostPlatform.isDarwin; # TODO: figure out how to build on Darwin
};
}