From a5a00a7973799e036239f4eef5da229acdf3e7d3 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Wed, 3 Sep 2025 22:11:02 +0200 Subject: [PATCH 1/2] python3Packages.http-message-signatures: use pyproject, unbreak https://hydra.nixos.org/build/305645816 --- .../http-message-signatures/default.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/http-message-signatures/default.nix b/pkgs/development/python-modules/http-message-signatures/default.nix index c5877acb8119..87362685ceb4 100644 --- a/pkgs/development/python-modules/http-message-signatures/default.nix +++ b/pkgs/development/python-modules/http-message-signatures/default.nix @@ -3,19 +3,19 @@ buildPythonPackage, cryptography, fetchFromGitHub, - http-sfv, pytestCheckHook, pythonOlder, - setuptools-scm, + hatchling, + hatch-vcs, requests, }: buildPythonPackage rec { pname = "http-message-signatures"; version = "1.0.0"; - format = "setuptools"; + pyproject = true; - disabled = pythonOlder "3.7"; + disabled = pythonOlder "3.8"; src = fetchFromGitHub { owner = "pyauth"; @@ -24,11 +24,13 @@ buildPythonPackage rec { hash = "sha256-vPZeAS3hR7Bmj2FtME+V9WU3TViBndrBb9GLkdMVh2Q="; }; - nativeBuildInputs = [ setuptools-scm ]; + build-system = [ + hatchling + hatch-vcs + ]; propagatedBuildInputs = [ cryptography - http-sfv ]; nativeCheckInputs = [ From ae853b8f6a0ca145aed46de6f2d3c581355062f6 Mon Sep 17 00:00:00 2001 From: Peder Bergebakken Sundt Date: Fri, 5 Sep 2025 15:50:15 +0200 Subject: [PATCH 2/2] python3Packages.http-message-signatures: modernize --- .../python-modules/http-message-signatures/default.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/pkgs/development/python-modules/http-message-signatures/default.nix b/pkgs/development/python-modules/http-message-signatures/default.nix index 87362685ceb4..a778ae9a62ba 100644 --- a/pkgs/development/python-modules/http-message-signatures/default.nix +++ b/pkgs/development/python-modules/http-message-signatures/default.nix @@ -29,7 +29,7 @@ buildPythonPackage rec { hatch-vcs ]; - propagatedBuildInputs = [ + dependencies = [ cryptography ]; @@ -42,10 +42,10 @@ buildPythonPackage rec { pythonImportsCheck = [ "http_message_signatures" ]; - meta = with lib; { + meta = { description = "Requests authentication module for HTTP Signature"; homepage = "https://github.com/pyauth/http-message-signatures"; - license = licenses.asl20; - maintainers = with maintainers; [ fab ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ fab ]; }; }