depot/third_party/nixpkgs/pkgs/development/python-modules/krb5/default.nix
Default email 159e378cbb Project import generated by Copybara.
GitOrigin-RevId: c04d5652cfa9742b1d519688f65d1bbccea9eb7e
2024-09-19 17:19:46 +03:00

48 lines
934 B
Nix

{
lib,
stdenv,
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;
broken = stdenv.isDarwin; # TODO: figure out how to build on Darwin
};
}