Skip to content

Commit

Permalink
python312Packages.pyjwt: 2.8.0 -> 2.9.0 (#335685)
Browse files Browse the repository at this point in the history
  • Loading branch information
dotlambda authored Aug 28, 2024
2 parents 04d06a4 + cf2eaa5 commit ff69785
Showing 1 changed file with 13 additions and 17 deletions.
30 changes: 13 additions & 17 deletions pkgs/development/python-modules/pyjwt/default.nix
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
lib,
buildPythonPackage,
fetchPypi,
fetchFromGitHub,
setuptools,
cryptography,
pytestCheckHook,
Expand All @@ -13,38 +13,34 @@

buildPythonPackage rec {
pname = "pyjwt";
version = "2.8.0";
format = "pyproject";
version = "2.9.0";
pyproject = true;

disabled = pythonOlder "3.7";
disabled = pythonOlder "3.8";

src = fetchPypi {
pname = "PyJWT";
inherit version;
hash = "sha256-V+KNFW49XBAIjgxoq7kL+sPfgrQKcb0NqiDGXM1cI94=";
src = fetchFromGitHub {
owner = "jpadilla";
repo = "pyjwt";
rev = "refs/tags/${version}";
hash = "sha256-z1sqaSeign0ZDFcg94cli0fIVBxcK14VUlgP+mSaxRA=";
};

postPatch = ''
sed -i '/types-cryptography/d' setup.cfg
'';

outputs = [
"out"
"doc"
];

build-system = [ setuptools ];

nativeBuildInputs = [
setuptools
sphinxHook
sphinx-rtd-theme
zope-interface
];

passthru.optional-dependencies.crypto = [ cryptography ];
optional-dependencies.crypto = [ cryptography ];

nativeCheckInputs = [
pytestCheckHook
] ++ (lib.flatten (lib.attrValues passthru.optional-dependencies));
nativeCheckInputs = [ pytestCheckHook ] ++ (lib.flatten (lib.attrValues optional-dependencies));

disabledTests = [
# requires internet connection
Expand Down

0 comments on commit ff69785

Please sign in to comment.