python313Packages.jwt: refactor

Moraxyc aa4026ae c79710eb

Changed files
+9 -6
pkgs
development
python-modules
+9 -6
pkgs/development/python-modules/jwt/default.nix
···
buildPythonPackage,
fetchFromGitHub,
pythonOlder,
+
setuptools,
cryptography,
freezegun,
pytestCheckHook,
···
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}";
···
substituteInPlace setup.cfg --replace "--flake8" ""
'';
-
propagatedBuildInputs = [ cryptography ];
+
build-system = [ setuptools ];
+
+
dependencies = [ cryptography ];
nativeCheckInputs = [
pytestCheckHook
···
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 ];
};
}