Merge pull request #216873 from Thornycrackers-Forks/master

pythonPackages.python-jwt: init at 1.3.1
This commit is contained in:
Nick Cao 2023-02-23 08:54:48 +08:00 committed by GitHub
commit f221987b19
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 55 additions and 0 deletions

View file

@ -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";

View file

@ -0,0 +1,47 @@
{ 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 ];
};
}

View file

@ -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 { };