diff --git a/pkgs/development/python-modules/http-message-signatures/default.nix b/pkgs/development/python-modules/http-message-signatures/default.nix index c5877acb8119..a778ae9a62ba 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 = [ + dependencies = [ cryptography - http-sfv ]; nativeCheckInputs = [ @@ -40,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 ]; }; }