From ccce06eb008423fa1a7fc8d540d9ad1766e95448 Mon Sep 17 00:00:00 2001 From: Javi Merino Date: Wed, 7 Feb 2024 06:19:39 +0000 Subject: [PATCH 1/3] python3Packages.requests-gssapi: init at 1.2.3 --- .../requests-gssapi/default.nix | 41 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 43 insertions(+) create mode 100644 pkgs/development/python-modules/requests-gssapi/default.nix diff --git a/pkgs/development/python-modules/requests-gssapi/default.nix b/pkgs/development/python-modules/requests-gssapi/default.nix new file mode 100644 index 000000000000..f189acf45ffd --- /dev/null +++ b/pkgs/development/python-modules/requests-gssapi/default.nix @@ -0,0 +1,41 @@ +{ buildPythonPackage +, fetchPypi +, gssapi +, lib +, pytestCheckHook +, pythonOlder +, requests +, setuptools +}: +buildPythonPackage rec { + pname = "requests-gssapi"; + version = "1.2.3"; + disabled = pythonOlder "3.8"; + src = fetchPypi { + inherit pname version; + hash = "sha256-IHhFCJgUAfcVPJM+7QlTOJM6QIGNplolnb8tgNzLFQ4="; + }; + + nativeBuildInputs = [ + setuptools + ]; + + propagatedBuildInputs = [ + 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"; + maintainers = with maintainers; [ javimerino ]; + license = [ licenses.isc ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 4e5d8f76cefe..9df3d4f21ac6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -12700,6 +12700,8 @@ self: super: with self; { requests-credssp = callPackage ../development/python-modules/requests-credssp { }; + requests-gssapi = callPackage ../development/python-modules/requests-gssapi { }; + requests-hawk = callPackage ../development/python-modules/requests-hawk { }; requests = callPackage ../development/python-modules/requests { }; From 736a64e7eecd1ba243348279ee6c1521238a5b54 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 23 Mar 2024 19:56:58 +0100 Subject: [PATCH 2/3] python312Packages.requests-gssapi: refactor --- .../requests-gssapi/default.nix | 20 ++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) diff --git a/pkgs/development/python-modules/requests-gssapi/default.nix b/pkgs/development/python-modules/requests-gssapi/default.nix index f189acf45ffd..2cb07568fd98 100644 --- a/pkgs/development/python-modules/requests-gssapi/default.nix +++ b/pkgs/development/python-modules/requests-gssapi/default.nix @@ -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 ]; }; } From 88409e950fac0f375f33cb717d2b15ccfe56fa15 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 23 Mar 2024 20:02:59 +0100 Subject: [PATCH 3/3] python3Packages.requests-gssapi: add missing semicolon --- pkgs/development/python-modules/requests-gssapi/default.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/requests-gssapi/default.nix b/pkgs/development/python-modules/requests-gssapi/default.nix index 2cb07568fd98..ac762c7c20b3 100644 --- a/pkgs/development/python-modules/requests-gssapi/default.nix +++ b/pkgs/development/python-modules/requests-gssapi/default.nix @@ -40,7 +40,7 @@ buildPythonPackage rec { 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 ]; };