nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 findutils,
6 krb5-c,
7 setuptools,
8 replaceVars,
9}:
10
11buildPythonPackage rec {
12 pname = "k5test";
13 version = "0.10.4";
14 pyproject = true;
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-4VJJHmYC9qk7PVM9OHvUWQ8kdgk7aEIXD/C5PeZL7zA=";
19 };
20
21 patches = [
22 (replaceVars ./fix-paths.patch {
23 inherit findutils;
24 krb5 = krb5-c;
25 # krb5-config is in dev output
26 krb5Dev = krb5-c.dev;
27 })
28 ];
29
30 nativeBuildInputs = [ setuptools ];
31
32 # No tests
33 doCheck = false;
34
35 pythonImportsCheck = [ "k5test" ];
36
37 meta = {
38 description = "Library for setting up self-contained Kerberos 5 environment";
39 homepage = "https://github.com/pythongssapi/k5test";
40 changelog = "https://github.com/pythongssapi/k5test/releases/tag/v${version}";
41 license = lib.licenses.mit;
42 maintainers = [ ];
43 };
44}