Files
nixpkgs/pkgs/development/python-modules/k5test/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

48 lines
935 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
findutils,
krb5-c,
pythonOlder,
setuptools,
replaceVars,
}:
buildPythonPackage rec {
pname = "k5test";
version = "0.10.4";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-4VJJHmYC9qk7PVM9OHvUWQ8kdgk7aEIXD/C5PeZL7zA=";
};
patches = [
(replaceVars ./fix-paths.patch {
inherit findutils;
krb5 = krb5-c;
# krb5-config is in dev output
krb5Dev = krb5-c.dev;
})
];
nativeBuildInputs = [ setuptools ];
# No tests
doCheck = false;
pythonImportsCheck = [ "k5test" ];
meta = {
description = "Library for setting up self-contained Kerberos 5 environment";
homepage = "https://github.com/pythongssapi/k5test";
changelog = "https://github.com/pythongssapi/k5test/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = [ ];
};
}