Unverified Commit f221987b authored by Nick Cao's avatar Nick Cao Committed by GitHub
Browse files

Merge pull request #216873 from Thornycrackers-Forks/master

pythonPackages.python-jwt: init at 1.3.1
parents af453a57 b01d0ee1
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -14815,6 +14815,12 @@
    githubId = 1634990;
    name = "Tom McLaughlin";
  };
  thornycrackers = {
    email = "codyfh@gmail.com";
    github = "thornycrackers";
    githubId = 4313010;
    name = "Cody Hiar";
  };
  thoughtpolice = {
    email = "aseipp@pobox.com";
    github = "thoughtpolice";
+47 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, cryptography
, freezegun
, pytestCheckHook
, pytest-cov
}:

buildPythonPackage rec {
  pname = "jwt";
  version = "1.3.1";
  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    inherit version;
    owner = "GehirnInc";
    repo = "python-jwt";
    rev = "v${version}";
    sha256 = "sha256-N1J8yBVX/O+92cRp+q2gA2cFsd+C7JjUR9jo0VGoINg=";
  };

  postPatch = ''
    # pytest-flake8 is incompatible flake8 6.0.0 and currently unmaintained
    substituteInPlace setup.cfg --replace "--flake8" ""
  '';

  propagatedBuildInputs = [
    cryptography
  ];

  nativeCheckInputs = [
    pytestCheckHook
    freezegun
    pytest-cov
  ];

  pythonImportsCheck = [ "jwt" ];

  meta = with lib; {
    description = "JSON Web Token library for Python 3";
    homepage = "https://github.com/GehirnInc/python-jwt";
    license = licenses.asl20;
    maintainers = with maintainers; [ thornycrackers ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -6548,6 +6548,8 @@ self: super: with self; {

  nxt-python = callPackage ../development/python-modules/nxt-python { };

  python-jwt = callPackage ../development/python-modules/python-jwt { };

  python-nvd3 = callPackage ../development/python-modules/python-nvd3 { };

  py-deprecate = callPackage ../development/python-modules/py-deprecate { };