summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/k5test/default.nix
blob: 04ea7a724cd9ba768bededd0f77798d2707bbf19 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{
  lib,
  buildPythonPackage,
  fetchPypi,
  findutils,
  krb5-c,
  setuptools,
  replaceVars,
}:

buildPythonPackage rec {
  pname = "k5test";
  version = "0.10.4";
  pyproject = true;

  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 = [ ];
  };
}