python313Packages.jwt: refactor
This commit is contained in:
@@ -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 ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user