python312Packages.requests-gssapi: refactor
This commit is contained in:
parent
ccce06eb00
commit
736a64e7ee
1 changed files with 13 additions and 7 deletions
|
@ -1,26 +1,30 @@
|
||||||
{ buildPythonPackage
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, gssapi
|
, gssapi
|
||||||
, lib
|
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, pythonOlder
|
, pythonOlder
|
||||||
, requests
|
, requests
|
||||||
, setuptools
|
, setuptools
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "requests-gssapi";
|
pname = "requests-gssapi";
|
||||||
version = "1.2.3";
|
version = "1.2.3";
|
||||||
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.8";
|
disabled = pythonOlder "3.8";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit pname version;
|
inherit pname version;
|
||||||
hash = "sha256-IHhFCJgUAfcVPJM+7QlTOJM6QIGNplolnb8tgNzLFQ4=";
|
hash = "sha256-IHhFCJgUAfcVPJM+7QlTOJM6QIGNplolnb8tgNzLFQ4=";
|
||||||
};
|
};
|
||||||
|
|
||||||
nativeBuildInputs = [
|
build-system = [
|
||||||
setuptools
|
setuptools
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
dependencies = [
|
||||||
gssapi
|
gssapi
|
||||||
requests
|
requests
|
||||||
];
|
];
|
||||||
|
@ -29,13 +33,15 @@ buildPythonPackage rec {
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
];
|
];
|
||||||
|
|
||||||
pythonImportCheck = [ "requests_gssapi" ];
|
pythonImportCheck = [
|
||||||
|
"requests_gssapi"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A GSSAPI authentication handler for python-requests";
|
description = "A GSSAPI authentication handler for python-requests";
|
||||||
homepage = "https://github.com/pythongssapi/requests-gssapi";
|
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 ];
|
maintainers = with maintainers; [ javimerino ];
|
||||||
license = [ licenses.isc ];
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue