Files
nixpkgs/pkgs/development/python-modules/krb5/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

49 lines
935 B
Nix

{
lib,
stdenv,
buildPythonPackage,
cython,
fetchPypi,
k5test,
krb5-c, # C krb5 library
pytestCheckHook,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "krb5";
version = "0.7.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-7V8T1QMUibENhlXAraKKgcI5Gz7LigjG1znh5YNbxFA=";
};
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;
teams = [ lib.teams.deshaw ];
broken = stdenv.hostPlatform.isDarwin; # TODO: figure out how to build on Darwin
};
}