python312Packages.requests-gssapi: refactor

This commit is contained in:
Fabian Affolter 2024-03-23 19:56:58 +01:00 committed by GitHub
parent ccce06eb00
commit 736a64e7ee
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 13 additions and 7 deletions

View File

@ -1,26 +1,30 @@
{ buildPythonPackage
{ lib
, buildPythonPackage
, fetchPypi
, gssapi
, lib
, pytestCheckHook
, pythonOlder
, requests
, setuptools
}:
buildPythonPackage rec {
pname = "requests-gssapi";
version = "1.2.3";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-IHhFCJgUAfcVPJM+7QlTOJM6QIGNplolnb8tgNzLFQ4=";
};
nativeBuildInputs = [
build-system = [
setuptools
];
propagatedBuildInputs = [
dependencies = [
gssapi
requests
];
@ -29,13 +33,15 @@ buildPythonPackage rec {
pytestCheckHook
];
pythonImportCheck = [ "requests_gssapi" ];
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";
changelog = "https://github.com/pythongssapi/requests-gssapi/blob/v${version}/HISTORY.rst"
license = licenses.isc;
maintainers = with maintainers; [ javimerino ];
license = [ licenses.isc ];
};
}