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

32 lines
630 B
Nix

{
lib,
fetchPypi,
buildPythonPackage,
krb5-c, # C krb5 library, not PyPI krb5
}:
buildPythonPackage rec {
pname = "pykerberos";
version = "1.2.4";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-nXAevY/FlsmdMVXVukWBO9WQjSbvg7oK3SUO22IqvtQ=";
};
nativeBuildInputs = [ krb5-c ]; # for krb5-config
buildInputs = [ krb5-c ];
# there are no tests
doCheck = false;
pythonImportsCheck = [ "kerberos" ];
meta = with lib; {
description = "High-level interface to Kerberos";
license = licenses.asl20;
maintainers = with maintainers; [ catern ];
};
}