python313Packages.jwt: refactor
This commit is contained in:
@@ -3,6 +3,7 @@
|
|||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchFromGitHub,
|
fetchFromGitHub,
|
||||||
pythonOlder,
|
pythonOlder,
|
||||||
|
setuptools,
|
||||||
cryptography,
|
cryptography,
|
||||||
freezegun,
|
freezegun,
|
||||||
pytestCheckHook,
|
pytestCheckHook,
|
||||||
@@ -12,11 +13,11 @@
|
|||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "jwt";
|
pname = "jwt";
|
||||||
version = "1.4.0";
|
version = "1.4.0";
|
||||||
format = "setuptools";
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.6";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
inherit version;
|
|
||||||
owner = "GehirnInc";
|
owner = "GehirnInc";
|
||||||
repo = "python-jwt";
|
repo = "python-jwt";
|
||||||
tag = "v${version}";
|
tag = "v${version}";
|
||||||
@@ -28,7 +29,9 @@ buildPythonPackage rec {
|
|||||||
substituteInPlace setup.cfg --replace "--flake8" ""
|
substituteInPlace setup.cfg --replace "--flake8" ""
|
||||||
'';
|
'';
|
||||||
|
|
||||||
propagatedBuildInputs = [ cryptography ];
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
|
dependencies = [ cryptography ];
|
||||||
|
|
||||||
nativeCheckInputs = [
|
nativeCheckInputs = [
|
||||||
pytestCheckHook
|
pytestCheckHook
|
||||||
@@ -38,10 +41,10 @@ buildPythonPackage rec {
|
|||||||
|
|
||||||
pythonImportsCheck = [ "jwt" ];
|
pythonImportsCheck = [ "jwt" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "JSON Web Token library for Python 3";
|
description = "JSON Web Token library for Python 3";
|
||||||
homepage = "https://github.com/GehirnInc/python-jwt";
|
homepage = "https://github.com/GehirnInc/python-jwt";
|
||||||
license = licenses.asl20;
|
license = lib.licenses.asl20;
|
||||||
maintainers = with maintainers; [ thornycrackers ];
|
maintainers = with lib.maintainers; [ thornycrackers ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user