at 23.11-beta 961 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pythonOlder 5, cryptography 6, freezegun 7, pytestCheckHook 8, pytest-cov 9}: 10 11buildPythonPackage rec { 12 pname = "jwt"; 13 version = "1.3.1"; 14 disabled = pythonOlder "3.6"; 15 16 src = fetchFromGitHub { 17 inherit version; 18 owner = "GehirnInc"; 19 repo = "python-jwt"; 20 rev = "v${version}"; 21 hash = "sha256-N1J8yBVX/O+92cRp+q2gA2cFsd+C7JjUR9jo0VGoINg="; 22 }; 23 24 postPatch = '' 25 # pytest-flake8 is incompatible flake8 6.0.0 and currently unmaintained 26 substituteInPlace setup.cfg --replace "--flake8" "" 27 ''; 28 29 propagatedBuildInputs = [ 30 cryptography 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 freezegun 36 pytest-cov 37 ]; 38 39 pythonImportsCheck = [ "jwt" ]; 40 41 meta = with lib; { 42 description = "JSON Web Token library for Python 3"; 43 homepage = "https://github.com/GehirnInc/python-jwt"; 44 license = licenses.asl20; 45 maintainers = with maintainers; [ thornycrackers ]; 46 }; 47}