summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/cccolutils/default.nix
blob: 5690162312538e07dfa84777751d39149ecd9c79 (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
45
{
  lib,
  buildPythonPackage,
  fetchPypi,
  setuptools,
  git,
  gitpython,
  krb5-c, # C krb5 library, not PyPI krb5
  mock,
  pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
  pname = "cccolutils";
  version = "1.5";
  pyproject = true;

  __structuredAttrs = true;

  src = fetchPypi {
    pname = "CCColUtils";
    inherit (finalAttrs) version;
    hash = "sha256-YzKjG43biRbTZKtzSUHHhtzOfcZfzISHDFolqzrBjL8=";
  };

  build-system = [ setuptools ];

  buildInputs = [ krb5-c ];

  dependencies = [
    git
    gitpython
    mock
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "cccolutils" ];

  meta = {
    description = "Python Kerberos 5 Credential Cache Collection Utilities";
    homepage = "https://pagure.io/cccolutils";
    license = lib.licenses.gpl2Plus;
  };
})