about summary refs log tree commit diff
path: root/pkgs/development/python-modules/requests-gssapi/default.nix
blob: b6b4e272dd5afc76f4b93014e0528eab9ee9c86b (plain) (blame)
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
{
  lib,
  buildPythonPackage,
  fetchPypi,
  gssapi,
  pytestCheckHook,
  pythonOlder,
  requests,
  setuptools,
}:

buildPythonPackage rec {
  pname = "requests-gssapi";
  version = "1.3.0";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-TVK/jCqiqCkTDvzKhcFJQ/3QqnVFWquYWyuHJhWcIMo=";
  };

  build-system = [ setuptools ];

  dependencies = [
    gssapi
    requests
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportCheck = [ "requests_gssapi" ];

  meta = with lib; {
    description = "A GSSAPI authentication handler for python-requests";
    homepage = "https://github.com/pythongssapi/requests-gssapi";
    changelog = "https://github.com/pythongssapi/requests-gssapi/blob/v${version}/HISTORY.rst";
    license = licenses.isc;
    maintainers = with maintainers; [ javimerino ];
  };
}