From aa4026ae93eaaa0212316afdbf7a2a0e7a2d5629 Mon Sep 17 00:00:00 2001 From: Moraxyc Date: Mon, 23 Jun 2025 21:46:24 +0800 Subject: [PATCH] python313Packages.jwt: refactor --- pkgs/development/python-modules/jwt/default.nix | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/pkgs/development/python-modules/jwt/default.nix b/pkgs/development/python-modules/jwt/default.nix index 8f2b623ccca6..c420372cee61 100644 --- a/pkgs/development/python-modules/jwt/default.nix +++ b/pkgs/development/python-modules/jwt/default.nix @@ -3,6 +3,7 @@ buildPythonPackage, fetchFromGitHub, pythonOlder, + setuptools, cryptography, freezegun, pytestCheckHook, @@ -12,11 +13,11 @@ buildPythonPackage rec { pname = "jwt"; version = "1.4.0"; - format = "setuptools"; + pyproject = true; + disabled = pythonOlder "3.6"; src = fetchFromGitHub { - inherit version; owner = "GehirnInc"; repo = "python-jwt"; tag = "v${version}"; @@ -28,7 +29,9 @@ buildPythonPackage rec { substituteInPlace setup.cfg --replace "--flake8" "" ''; - propagatedBuildInputs = [ cryptography ]; + build-system = [ setuptools ]; + + dependencies = [ cryptography ]; nativeCheckInputs = [ pytestCheckHook @@ -38,10 +41,10 @@ buildPythonPackage rec { pythonImportsCheck = [ "jwt" ]; - meta = with lib; { + meta = { description = "JSON Web Token library for Python 3"; homepage = "https://github.com/GehirnInc/python-jwt"; - license = licenses.asl20; - maintainers = with maintainers; [ thornycrackers ]; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ thornycrackers ]; }; }