1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 gssapi,
6 pytestCheckHook,
7 pythonOlder,
8 requests,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "requests-gssapi";
14 version = "1.3.0";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchPypi {
20 inherit pname version;
21 hash = "sha256-TVK/jCqiqCkTDvzKhcFJQ/3QqnVFWquYWyuHJhWcIMo=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [
27 gssapi
28 requests
29 ];
30
31 nativeCheckInputs = [ pytestCheckHook ];
32
33 pythonImportsCheck = [ "requests_gssapi" ];
34
35 meta = with lib; {
36 description = "GSSAPI authentication handler for python-requests";
37 homepage = "https://github.com/pythongssapi/requests-gssapi";
38 changelog = "https://github.com/pythongssapi/requests-gssapi/blob/v${version}/HISTORY.rst";
39 license = licenses.isc;
40 maintainers = with maintainers; [ javimerino ];
41 };
42}