2024-03-23 19:56:58 +01:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
2024-02-07 06:19:39 +00:00
|
|
|
fetchPypi,
|
|
|
|
gssapi,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
|
|
|
requests,
|
|
|
|
setuptools,
|
|
|
|
}:
|
2024-03-23 19:56:58 +01:00
|
|
|
|
2024-02-07 06:19:39 +00:00
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "requests-gssapi";
|
2024-03-24 02:40:41 +00:00
|
|
|
version = "1.3.0";
|
2024-03-23 19:56:58 +01:00
|
|
|
pyproject = true;
|
|
|
|
|
2024-02-07 06:19:39 +00:00
|
|
|
disabled = pythonOlder "3.8";
|
2024-03-23 19:56:58 +01:00
|
|
|
|
2024-02-07 06:19:39 +00:00
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2024-03-24 02:40:41 +00:00
|
|
|
hash = "sha256-TVK/jCqiqCkTDvzKhcFJQ/3QqnVFWquYWyuHJhWcIMo=";
|
2024-02-07 06:19:39 +00:00
|
|
|
};
|
|
|
|
|
2024-03-23 19:56:58 +01:00
|
|
|
build-system = [ setuptools ];
|
2024-02-07 06:19:39 +00:00
|
|
|
|
2024-03-23 19:56:58 +01:00
|
|
|
dependencies = [
|
2024-02-07 06:19:39 +00:00
|
|
|
gssapi
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
|
2024-06-24 21:15:57 +00:00
|
|
|
pythonImportsCheck = [ "requests_gssapi" ];
|
2024-02-07 06:19:39 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "GSSAPI authentication handler for python-requests";
|
|
|
|
homepage = "https://github.com/pythongssapi/requests-gssapi";
|
2024-03-23 20:02:59 +01:00
|
|
|
changelog = "https://github.com/pythongssapi/requests-gssapi/blob/v${version}/HISTORY.rst";
|
2024-03-23 19:56:58 +01:00
|
|
|
license = licenses.isc;
|
2024-02-07 06:19:39 +00:00
|
|
|
maintainers = with maintainers; [ javimerino ];
|
|
|
|
};
|
|
|
|
}
|